Explain what a database is and why almost every app needs one.
Answer
- A database is where an app keeps its data on disk in an organized way: users, orders, messages.
- Without it, data would live only in memory and disappear when the program stops.
- It lets many people read and write at the same time without breaking each other's work.
- It finds data fast (indexes) and protects it with rules (constraints) and transactions.
- You talk to a relational database using SQL; examples are PostgreSQL and MySQL.
Practice this question in Repaso