What is the difference between the database and the table?

There is a major difference between a database and a table. The differences are as follows:

Tables are a way to represent the division of data in a database while the database is a collection of tables and data.
Tables are used to group the data in relation to each other and create a dataset. This dataset will be used in the database. The data stored in the table in any form is a part of the database, but the reverse is not true.
A database is a collection of organized data and features used to access them, whereas the table is a collection of rows and columns used to store the data.