A primary key is a property or column whose value uniquely identifies each record of a given type. In SQL, it provides the stable identity needed to connect related table records. section 4.1.1
Use primary keys to structure relationships in a table-oriented database:
- Give each record in tables such as Users, Roles, BoardGames, and Comments a unique identity. section 4.1.1
- Add a referencing column where another table needs to point to a record; Comments can use BoardGameID to associate each comment with one board game. section 4.1.1
- Contrast this design with NoSQL, where related information is often embedded in parent documents and key-based relationships are used selectively. section 4.1.1
Use the SQL schema diagram to trace primary-key identities and the columns that reference related records across tables. section 4.1.1




















