Download presentation
Presentation is loading. Please wait.
Published byRodger Nichols Modified over 9 years ago
2
Database Management n Database Hierarchy n File-oriented Approach n Database-oriented Approach n DBMS n Entity Relationship Diagram n Data Structures
3
Database Hierarchy Logical Data Storage Physical Data Storage Database File Record Byte Bit
4
Database File Record Field Byte Bit Hierararchical Element Example 100Brake PadSonataDY10,000 5 105Spark PlugAvanteDY 3,00010 110HeadlightAvanteJS65,000 3 Brake Pad 10101000 0 Sales FileOrder File Product File Part Database Product File No.DescriptionModel Vendor Unit Pr. Qty 100Brake PadSonataDY10,0005 No.DescriptionModel Vendor Unit Pr. Qty ‘Description’ Field Record of the Part ‘Brake Pad’ The Alphabet ‘B’ in ‘Brake Pad’ The Rightmost bit in the Alphabet ‘B’
5
File-oriented Approach Order Entry Program Order Entry Program Invoicing Program Invoicing Program Sales Accounting Warehousing Packing List Program Packing List Program 매입 파일 Order File 매입 파일 Invoice File 매입 파일 Packing List File
6
Problems of File-oriented Approach n Data Redundancy n Data Inconsistency n Program-Data Dependency n Data Sharing Problem
7
Database-oriented Approach Order Entry Program Order Entry Program Invoicing Program Invoicing Program Sales Accounting Warehousing Packing List Program Packing List Program DBMS 데이터베이스 Order File, Invoice File, Packing List File
8
Advantages of Database Approach n Data sharing n Easy data access n Data integrity n No data redundancy n Easy modification & update n Program-data independence n Standardized data access n Data security
9
Database Management System Program 1 Program 2 Program 3 OrganizationalDatabase DBMS Applications DDL DML Data Dict. DB
10
Microsoft Access: a DBMS for Windows 98
11
Order Product Contains Is- Purchased- From Vendor Order Number Order Date Product Code Quantity Ordered Amount Total Amount Data Attributes for the ‘Order’ Entity Product Code Description Unit Price Vendor Data Attributes for the ‘Product’ Entity Vendor ID Vendor Name Mailing Address Phone Number Data Attributes for the ‘Vendor’ Entity Entity-Relationship Diagram(ERD)
12
Logical Data Models n Tree (Hierarchical) Data Model –simple to understand & implement –parent-child relationship n Network Data Model –quite complex –owner-member relationship n Relational Data Model –data is represented as tables (i.e., rows & columns)
13
Project 1 Dept. 1 Dept. 2 Dept. 3 Employee 1 Employee 2 Employee 3 Employee 4 Employee 5 Employee 6 Tree Data Model
14
Network Data Model Project 1 Dept. 1 Dept. 2 Dept. 3 Employee 1 Employee 2 Employee 3 Employee 4 Employee 5 Employee 6 Project 2
15
Project Table Employee Table Department Table Relational Data Model
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.