Chapter 4: Relational Model Flashcards
What are primary keys (PK) and foreign keys (FK)?
A primary key uniquely identifies a record in a table. A foreign key is an attribute in one table that links to the primary key in another table
What is the structure of a relation in the relational model?
A relation consists of a set of tuples (rows), each of which contains attributes (columns). The degree refers to the number of attributes, and the cardinality refers to the number of tuples in the relation.
What are the different types of data integrity constraints?
Types of data integrity constraints include entity integrity (ensuring that no primary key value is null), referential integrity (ensuring foreign keys match primary keys), and semantic integrity (enforcing business rules).
What is Data Manipulation Language (DML)?
DML is used to query, insert, update, and delete data in a relational database.