Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle Definitions Introduction to Databases. Database Management Systems(DBMS) Relational Database Management System 2 Relational DBMS RDBM: Data are represented as a set of tables (relation is a mathematical term for a table) Originated by E.F. Codd (1970) Based on sets theory 3 Structure of RDBM: A set of relations (Tables) Each relation has a unique name Each relation has a set of attributes (Columns) Each relation has a set of tuples (Rows) 4 Restriction on RDBM: No two tuples are the same No two attributes are the same The order of tuples are immaterial The order of attributes are immaterial There is an attribute or a collection of attributes which identifies tuples uniquely called Primary Key Value of attribute must be atomic 5 Restriction on RDB: (Continued) Example: Student ( Name, Id, Gpa ); 6 Domains A set of legal values for an attribute (types) 7 Database Life Cycle Analysis: 1. Study and analyze business requirements Interview managers and users for the information requirements Develop a system specification 8 Database Lifecycle 2. Design (Data Models) Entity relational model (ER) Unify modeling language (UML) Check the design 3. Build the Databases/Document/Test Create tables and views, and programs Produce manuals 9 Database Lifecycle 4. Product delivery Load the software Monitor the performance 10 Practice (Analysis): Develop a System Specification for a video store: 11