How Well Do You Know the Basics of Databases?
This self-assessment checks the big ideas rather than syntax. Answer each statement with "true" or "false", then read the explanations. Count one point for each match. It is for your learning only.
Statements
- A database is a program or file that stores data so it can be searched and changed reliably.
- A spreadsheet and a relational database are exactly the same thing.
- In a relational database, data is stored in tables made of rows and columns.
- Every database needs a separate server program running.
- SQL is used to ask questions of a database and to change its data.
- An app usually talks to a database through a library called a driver.
- Two people can safely change the same database at the same time, because the database manages this for them.
- A database can refuse to save data that breaks its rules, such as a missing required value.
- NoSQL databases cannot store any structured data.
- Backups are only needed for very large databases.
Answers explained
- True. Reliable storage, searching and changing are the core jobs.
- False. Spreadsheets are for people editing a grid. Relational databases are built for programs, rules, many users and large amounts of data, and they use SQL.
- True. A table is like a well-organised list; each row is one item and each column is one property.
- False. SQLite stores everything in a single file and runs inside your program. PostgreSQL, MySQL and SQL Server do run as servers.
- True. SELECT asks questions; INSERT, UPDATE and DELETE change data.
- True. Python, JavaScript, Java and others each have drivers that send SQL and bring results back.
- True, mostly. Databases use transactions and locks so changes do not trample each other. You still need to write your app sensibly, but the database does much of the hard work.
- True. Rules called constraints, such as NOT NULL, UNIQUE and foreign keys, are checked on every change.
- False. "NoSQL" covers several kinds of databases, such as document stores, which often store structured data in a different shape. See a plain guide to relational and NoSQL databases.
- False. Any data you would be sad to lose deserves a backup, even a tiny learning project.
Scoring
| Score | What it suggests | Read next |
|---|---|---|
| 0 to 4 | The big picture is still forming | A Six-Part Beginner Course on What a Database Is |
| 5 to 7 | Solid start, a few gaps | Beginner Follow-Up Questions |
| 8 to 10 | Ready for hands-on work | How to Create Your First SQLite Database and Table |
How to get more out of this
For each statement you got wrong, try to write one sentence in your own words explaining the right answer. Explaining an idea is a much stronger test than recognising it. Then come back in a week and try again without peeking. Most learners find their score rises quickly once they have built one small table of their own, because the words stop being abstract.
A note on wording
Some statements, like number 7, are "true, mostly". Real systems have details and exceptions. At this stage, the general idea is what matters; the fine print comes with practice.
A free learning page for beginners. Practise on a test database, never on real customer data, and check the official documentation for your database version.