The starting table: Books
These invented titles and numbers are a practice dataset, not library records. Use this same table for every example.
A field is one category of data, such as Pages, shown as a column. A record is one complete row: book 101 has the title Orbit, genre SciFi and 180 pages. This table has four fields and five records. BookID is the primary key: its value uniquely identifies each book.
A relational database can contain related tables. We use only one table here so you can concentrate on reading queries; this is not a complete guide to relational database design.
| BookID | Title | Genre | Pages |
|---|---|---|---|
101 | Orbit | SciFi | 180 |
102 | Tide | Adventure | 120 |
103 | Signal | SciFi | 240 |
104 | Forest | Adventure | 180 |
105 | Comet | SciFi | 90 |

