CS370 Spring 2007 CS 370 Database Systems Lecture 4 Introduction to Database Design.

Slides:



Advertisements
Similar presentations
Database Design The process of finding user requirement
Advertisements

the Entity-Relationship (ER) Model
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Entity Relationship (E-R) Modeling Hachim Haddouti
Chapter 31 Chapter 3 Data Modeling Using the Entity-Relationship Model.
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Chapter 4 Entity Relationship (E-R) Modeling
Entity Relationship (ER) Modeling
Entity Relationship (E-R) Modeling
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
--The Entity Relationship Model(1)--1 The Entity Relationship Model.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 1 Data Models: Degrees of Data Abstraction l Modified ANSI/SPARC Framework.
Chapter 4 Entity Relationship (E-R) Modeling
Modeling & Designing the Database
Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – ER Model.
Data Modeling 1 Yong Choi School of Business CSUB.
APPENDIX C DESIGNING DATABASES
Data Modeling 1 Yong Choi School of Business CSUB.
Yong Choi School of Business CSUB
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas.
Data Modeling Using the Entity-Relationship Model
Data Modeling Using the Entity-Relationship Model
Data Modeling Using the Entity-Relationship Model
3 Chapter 3 Entity Relationship (E-R) Modeling Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
Daniel AdinugrohoDatabase Programming 1 DATABASE PROGRAMMING Lecture on 29 – 04 – 2005.
Lecture 2: Entity-Relationship Modeling
Entities and Attributes
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
ITEC224 Database Programming
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
SQL Structured Query Language Programming Course.
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
1 A Demo of Logical Database Design. 2 Aim of the demo To develop an understanding of the logical view of data and the importance of the relational model.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
Database Management COP4540, SCS, FIU Database Modeling Using the Entity-Relationship Model (Continued)
Slide Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Data Modelling Using Entity-Relationship (ER) Model
Entity-Relation Model. E-R Model The Entity-Relationship (ER) model was originally proposed by Peter in 1976 ER model is a conceptual data model that.
Data Modeling Yong Choi School of Business CSUB. Part # 2 2 Study Objectives Understand concepts of data modeling and its purpose Learn how relationships.
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Week 7-8 DBMS ER-Relational Mapping. ER-Relational Mapping.
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Mapping Constraints Keys.
1 CS 430 Database Theory Winter 2005 Lecture 3: A Fifty Minute Introduction to Data Modeling.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Lecture # 16 July 26,2012 Data Modeling using the Entity Relationship.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Entity Relationship (E-R) Model
Data Modeling Using the Entity- Relationship (ER) Model
COP Introduction to Database Structures
Entity- Relationship (ER) Model
Entity-Relationship Model
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
بسم الله الرحمن الرحيم.
CS 174: Server-Side Web Programming February 12 Class Meeting
Entity-Relationship Diagram (ERD)
Presentation transcript:

CS370 Spring 2007 CS 370 Database Systems Lecture 4 Introduction to Database Design

CS370 Spring 2007 Database Design Steps Requirements Analysis Conceptual Database Design Logical Database Design Physical Database Design Application & Security Design Maintenance Schema Refinement

CS370 Spring 2007 Requirements Analysis  What data is to be stored in the database, what applications must be built on top of it etc.  In other words, find out what users want from the database  Its usually an informal process that involves:-  Discussions with user groups  A study of the current operating environment  And how it is expected to change and so on.

CS370 Spring 2007 Conceptual & Logical Database Design  Involvement of ER (entity relationship) model.  The task of the logical design step is to convert an ER schema into a relational database schema (will be discuss later).

CS370 Spring 2007 Schema Refinement  This step involves, analyzing the collection of relations in relational database schema to identify potential problems, and to refine it  Normalization is involved in this step

CS370 Spring 2007 Physical Database Design  This step may simply involve building indexes on some tables and clustering some tables

CS370 Spring 2007 Application & Security Design  Any software project that involves a DBMS must consider aspects of the application that go beyond the database itself  Implementation phase is also merge in this step

CS370 Spring 2007 Maintenance  It involves monitoring, repairing and enhancing the capability of database  Usually done by periodic audits

CS370 Spring 2007 Some Basic Concept  A database can be modeled as  a collection of entities  relationship among entities  An entity is an object that exists independently and is distinguishable from other objects.  an employee, a company, a car, etc.

CS370 Spring 2007 An entity set is a set of entities of the same type. E.g., a set of employees, a set of departments  also called entity types Employee Entity Type : e1e1 e2e2 e3e3 Entity set: … The actual employees A general specification

CS370 Spring 2007 Attributes Properties of an entity or a relationship –name, address, weight, height are properties of a Person entity.

CS370 Spring 2007 Types of Attributes –A simple attribute cannot be subdivided Examples: Age, Sex, and Marital status –A composite attribute can be further subdivided to yield additional attributes Examples: –ADDRESS : Street, City, State, Zip –PHONE NUMBER, Area code, Exchange number

CS370 Spring 2007 Composite attribute Country Employee Address Street City EmpNo Name

CS370 Spring 2007 –Single-valued attribute can have only a single value Examples: –A person can have only one social security number –A manufactured part can have only one serial number –Multivalued attributes can have many values Examples: –A person may have several addresses –A household may have several phones with different numbers Employee Phone Types of Attributes

CS370 Spring 2007 –A derived attribute is not physically stored within the database; instead, it is derived by using an algorithm. Example: AGE can be derived from the data of birth and the current date. Employee Age Bonus Types of Attributes

CS370 Spring 2007 Key Attributes A set of attributes that can uniquely identify an entity A key is a minimal set of attributes whose values uniquely identify an entity in the set. Employee EmpNo Name ERD tabular

CS370 Spring 2007 Key Attributes Composite key: Name or Address alone cannot uniquely identify an employee, but together they can! Employee Name Address

CS370 Spring 2007 Key Attributes An entity may have more than one key –e.g., EmpNo, (Name, Address) –only one is selected as the key. (sometimes called the Primary key) Employee EmpNo Name Address In many cases, a key is artificially introduced (e.g., EmpNo) to make applications more efficient.