Dbms Shankar
Dbms Shankar
Key Concepts
1. Relation (Table): The basic structure in a relational model is a relation
or table. Each relation represents an entity set (e.g., Employees,
Products).
6. Keys:
Primary Key: A unique identifier for each row (tuple) in a table. Each table
must have one primary key, like EmployeeID for an Employees table.
Foreign Key: A field in a table that uniquely identifies a row in another table,
establishing a relationship between two tables.
Candidate Key: Any attribute that can be a primary key. A table can have
multiple candidate keys, but only one is selected as the primary key.
4. Union (∪): Combines tuples from two relations with the same schema.
5. Difference (-): Returns tuples in one relation that are not present in
another.
Data Integrity and Consistency: With primary and foreign keys, relational
databases enforce data integrity.
Relational data models are highly structured, suitable for handling large
volumes of transactional data, and offer strong consistency, making them
ideal for financial systems, enterprise applications, and any scenario
requiring reliable data integrity.