Professional Documents
Culture Documents
Agenda
• The ER model are built during the analysis phase of the system
development life cycle
Key Components
• Entity: which information must be known
• Attribute: describes or qualifies an entity; each of the attributes is
either required or optional
• Relationship: association between entities showing optionality and
degree
The Integrity Constraints
• Each row of data in a table can be uniquely identified by a primary
key
• You can logically relate data from multiple tables using foreign
keys
The Integrity Constraints
Guidelines for Primary Keys and Foreign Keys
• Foreign keys are based on data values and are purely logical (not
physical) pointers
• Querying data
• Inserting, updating, and deleting rows in a table
• Creating, replacing, altering, and dropping objects
• Controlling access to the database and its objects
• Guaranteeing database consistency and integrity
SQL Statements
Structured query language (SQL) is: