Quiz: Tables, Rows, Columns and Other First Words
Every new subject has its own vocabulary, and databases are no exception. This quiz checks the first words you need. Cover the answers, jot down your choices, then read the explanations. Getting some wrong is completely normal.
Questions
- In a table of students, one student's record is called a: (a) column, (b) row, (c) schema.
- "Email" in that same table is a: (a) column, (b) row, (c) query.
- SQL stands for: (a) Simple Question Language, (b) Structured Query Language, (c) Server Quick Link.
- A query is: (a) a request for data or a change, (b) a kind of table, (c) a password.
- A schema describes: (a) the colours of an app, (b) the structure of tables and their columns, (c) the server's address.
- A database server is: (a) a program that stores data and answers queries, (b) a spreadsheet, (c) a type of column.
- SQLite is different from PostgreSQL because: (a) SQLite stores the whole database in one file with no separate server, (b) SQLite cannot store text, (c) there is no difference.
- A driver is: (a) the person who runs the database, (b) a library that lets your programming language talk to the database, (c) a row with no data.
- A primary key is: (a) the first column in every table, (b) a column, or set of columns, that uniquely identifies each row, (c) the admin password.
- NULL means: (a) zero, (b) an empty string, (c) the value is unknown or missing.
Answers explained
- (b) row. Each row is one record: one student, one order, one book.
- (a) column. Columns are the named properties every row has, such as name, email and year.
- (b) Structured Query Language. People pronounce it "S-Q-L" or "sequel"; both are fine.
- (a) a request. A query can ask for data (
SELECT) or change it (INSERT,UPDATE,DELETE). - (b) the structure. The schema lists tables, their columns and the column types, like a blueprint.
- (a) a program. Servers such as PostgreSQL and MySQL run in the background and accept connections from apps.
- (a). SQLite is a library that reads and writes a single file. It is excellent for learning, small apps and phones.
- (b) a library. Python, JavaScript, Java and others each have drivers for each database.
- (b). It does not have to be the first column, though it often is. Its job is to make every row identifiable.
- (c) unknown or missing. NULL is not zero and not an empty string. That is why you test it with
IS NULLrather than= NULL.
Scoring
| Score | Suggestion |
|---|---|
| 0 to 4 | Read Practice Unit: Tables, Rows and Columns and try again next week |
| 5 to 7 | Good start. Look at Beginner Follow-Up Questions: What Exactly Is a Database? |
| 8 to 10 | Great. Move on to the quiz on primary and foreign keys |
A tip for remembering
Make a tiny table about something you like, such as your favourite films, with three columns and five rows. Then point at each part and name it out loud: table, row, column, primary key. It sounds silly, but it works.
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.