Database: An organised place where an application stores and finds data, such as users, orders, or products. MySQL, PostgreSQL, SQL Server, Oracle, and MongoDB are common examples.
Example
When someone signs up on a website, the application saves their name and email as a new row in the users table. When they log in, it looks up that row to check their details.
How a Relational Database is Organised
- Tables hold one kind of data, such as Users or Orders.
- Rows are individual records; columns are fields such as name and email.
- Primary keys identify each row uniquely.
- Foreign keys link tables, such as each order pointing to a user.
- Indexes make searching faster.
You read and change this data with SQL.
SQL vs NoSQL Databases
| Relational (SQL) | NoSQL | |
|---|---|---|
| Structure | Tables with fixed columns | Documents, key-value, graphs, and more |
| Examples | MySQL, PostgreSQL, SQL Server, Oracle | MongoDB, Redis, Cassandra |
| Good for | Structured data with relationships, such as orders and payments | Flexible or very large data, caching |
Start with a relational database and SQL. Most internship roles expect it.
Database Basics for Interviews
Expect questions on primary and foreign keys, joins, normalisation, indexes, and transactions. If your project uses a database, be ready to draw its main tables and explain why you designed them that way. Try the SQL interview questions test to check yourself.
Related terms
- SQL: the language used to work with relational databases.
- NoSQL: databases that don't use fixed tables.
- CRUD: the basic operations on database records.
- Backend: the part of the application that talks to the database.
- Dataset: data taken from a database for analysis.
Previous term: Data Science | Next term: Dataset
Related guides
- SQL Interview Questions Test
- Technical Interview Questions for Freshers
- Which Technology Should I Learn for an IT Internship?
Frequently asked questions
What is a database in simple words?
A database is an organised store of data that an application can save to and search quickly, such as a list of users or orders.
What is the difference between SQL and NoSQL databases?
SQL databases store data in tables with fixed columns and relationships. NoSQL databases use flexible formats such as documents or key-value pairs.
Which database should I learn first?
Start with one relational database, such as MySQL or PostgreSQL, along with SQL. The concepts transfer to others.
What database questions are asked in interviews?
Keys, joins, normalisation, indexes, transactions, and simple queries such as finding the second-highest salary.
Explore more internship terms
The IT Internship Glossary explains 199 terms you will hear before and during your internship, with simple definitions and real examples.
Browse all 199 terms