# What is a database

Databases are like large buckets that store data in an organized manner. A few examples of when we would like to create a database:

<div class="Lesson_content__j6FUx" id="bkmrk-a-database-for-a-uni">- A database for a university to save data about students, courses, and lecturers.
- A database for a car agency to track sales, car storage, and workers.
- A database for a hospital to save information about patient's history to provide good health care
- And many more

</div>Inside a database there are tables, and each table has a name, column names, and rows. For example, this is a `<strong>workers</strong>` table:

<div class="Lesson_content__j6FUx" id="bkmrk-%C2%A0-firstname-lastname"><figure class="table"><table><thead><tr><th> </th><th>firstname</th><th>lastname</th><th>age</th><th>exp\_years</th><th>gender</th></tr></thead><tbody><tr><td>1</td><td>Ghully</td><td>Thuas</td><td>29</td><td>2.3</td><td>Female</td></tr><tr><td>2</td><td>Bostal</td><td>Shkolky</td><td>32</td><td>0.2</td><td>Male</td></tr><tr><td>3</td><td>Qaostu</td><td>Malop</td><td>21</td><td>4</td><td>Female</td></tr></tbody></table>

</figure></div>The `<strong>workers</strong>` table has 5 columns and 3 rows. We don't need any tool to know that we have 3 workers and it is easy to calculate the average age of all of them `(29 + 32 + 21) / 3` but what happens when we have a thousand rows or even a million rows?

For that, we have databases and the SQL language. database stores all of the tables and SQL extracts the data.