Relational tables and SQL
Give each table a clear purpose. Use primary keys to identify rows and foreign keys to represent references. Start queries with `SELECT` and `FROM`, then filter with `WHERE`; be explicit about columns rather than relying on every column.
View key idea and practice
A relational database stores related data in tables of rows and columns. SQL is a language for defining, querying, and changing that data.
Worked exampleAn `Orders` table stores order ID, customer ID, order date, and status; a query selects open orders after a specified date.
Try itDesign a minimal table for courses and identify a primary key and two useful columns.
Suggested checkUse a stable course ID as the primary key and include a course name and category. Keep one course per row and make the ID unique and non-null.