130 likes | 144 Views
This chapter provides an overview of conventional files and relational databases, discussing their pros and cons, key concepts such as entities, attributes, and relationships, and the SQL code to create database structures. It also covers the different types of keys and integrity constraints. The chapter further introduces E-R diagrams, the physical database model, and relational database management systems (RDBMS). Lastly, it explains the concepts of normal forms, including 1NF, 2NF, and 3NF.
E N D
Introduction • Conventional files and relational databases • Pros and Cons of Conventional Files • Fields, records, files, and databases • Entities, attributes, and relationships • SQL code to create the database structures in a schema
Keys • Primary key • Secondary key • Foreign key
Integrity • Entity Integrity • Referential Integrity
Database Concepts • Records • Fixed-length record structure • Variable-length record structure • Files • Master files • Transaction Files • Archival files • Table look-up files
Relational Database Management Systems • DDL (Data Definition Language) • DML (Data manipulation Language) • SQL (Structured Query Language)
Normal Forms • 1NF: If there are no attributes that can have more than one value for a single instance of the entity. • 2NF: 1NF, and if the values of all non-primary key attributes are dependent on the full primary key – not just part of it. • 3NF: 2NF, and if the values of its non-primary key attributes are not dependent on any other non-primary key attributes.