Presentation is loading. Please wait.

Presentation is loading. Please wait.

BIS 360 – Lecture Six (Part 1) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)

Similar presentations


Presentation on theme: "BIS 360 – Lecture Six (Part 1) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)"— Presentation transcript:

1 BIS 360 – Lecture Six (Part 1) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)

2 EASY DATABASE DESIGN

3 What is data? Everything

4 What is Information? Organized Data

5 An organized collection of data What is Database?

6 What is DBMS? Database Management System A software package for creating databases and manipulating data in the databases

7 Designing a Database

8 The first step of database design Confine your database boundary

9 Design a database for registration Student Major Class Dept. Instructor 2nd Step - Identify Possible Entities (Objects)

10 Relationships among Entities Select Entities Then make your assumptions Student Class Major

11 Relationships among Entities  Identify the relationships Student Class Take Major Has 1 M M M

12 Entities and Relationships Entities and Relationships included in the database design must be “relevant and important” for the system Designer or system analyst must make the decision whether a particular entity or relationship is “relevant and important” Based on system requirements

13 Attributes  Describe E/R –Determine the [main] attributes for each E/R Student Class Take SSNName GradeDept Course# Ref# Major McodeMnameHas 1 M M M

14 Draw a TABLE

15 Field (Attribute) Field 1 Field 2 Field 3 Field 4

16 Record Record2 Record1 Record3 Record4 Field Field 1 Field 2 Field 3 Field 4 Draw a TABLE

17 Which one will be the best to identify a student? Why? SSN Name Address Phone Date of Birth Sex Major

18 STUDENT Table SSN Primary Key

19 STUDENT Table SSN LastNameFirstName Mcode 123456789 Taylor Mike CIS 987654321 SmithJohn ACC 287364510 JonesMary FIN

20 MAJOR Table Mcode Mname CIS Information Systems ACC Accounting FIN Finance

21 SSN LastNameFirstName Mcode Foreign Key STUDENT Table 123456789 Taylor Mike CIS 987654321 SmithJohn ACC 287364510 PrattMary FIN

22 CLASS Table Ref# Dept Course# 1234 Business 365 5017 Computer Science 234 3874 Business 166

23 How about the primary key of TAKE? TAKE table SSN# Ref# Grade 123456789 1234 A 123456789 3874 B 987654321 1234 A

24 TAKE table SSN Ref# Grade Primary Key (more than 1 field) 123456789 1234 A 123456789 3874 B 987654321 1234 A


Download ppt "BIS 360 – Lecture Six (Part 1) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)"

Similar presentations


Ads by Google