Professional Documents
Culture Documents
Lect 2
Lect 2
Database Systems
Lecture 3
3
Organizing Data
Entity - distinct object (i.e., person, place,
thing, concept or event)
Attribute - describes some aspect of the
entity (object)
Property of the entity
Relationship - association between entities
Entity Entity
Customers Purchases
Account_number Invoice_number
Attributes Name Account_number
Address Purchase_date
Relationship
Stereos to Go Database
Managemen
t Queries
Customer
Orders
Application
Order Items DBMS
Programs
Products
Manufacturers • DDL
• DML
Other
• Controlled access
Central Repository Software
(Organizational resource)
Single Access Point Multitude of
Applications
Components of a Database
Environment
Hardware
Software: DBMS, application program and query
software
Data: Organized in a schema, partitioned into
subschemas
Procedures: Govern the design, access and use
of the database
People: Administrators (DA, DBA), designers
(logical and physical), application developers
and users (novice and high-powered)
Advantages of the Database Approach
Cost of DBMS
Additional hardware costs
Cost of conversion
Performance
Higher impact of failure
In a production environment, processing can be
slow
Creating Data Flow Diagrams
Steps:
Produce Product
Store Product
INVENTORTY
Order Raw Materials Production Data
Pay for Raw Materials
2.3 Quantity Produced &
Store Location Stored
Pay for Labor Product
Creating Data Flow Diagrams
Example 4. Construct Level 1 (continued)
Create a level 1
decomposing the processes Level 1 DFD
in level 0 and identifying Order Decision
PURCHASE
data stores. 3.1 ORDER
Produce
Purchase
Customer Order Order Quantity On-Hand
Serve Product RAW
Quantity MATERIALS
Collect Payment Received Received
Goods
3.2
Produce Product Receive
Items
Store Product RECEIVED
ITEMS
Payment Approval
Order Raw Materials
VENDOR
Pay for Raw Materials 3.3
Pay
Vendor
Pay for Labor
Payment
Creating Data Flow Diagrams
Example 4. Construct Level 1 (continued)
Create a level 1
decomposing the processes Level 1 DFD
in level 0 and identifying Time Worked
Payment Approval
Order Raw Materials
4.3
Pay for Raw Materials Pay
Employe
e PAYMENTS
Pay for Labor
Payment
Process Decomposition
1.1 1.2
1.0
Record Receive
Sale
Order Payment
0.0
Lemonade
System 3.1
3.0 3.2 3.3
Produce
Procure- Receive Pay
Purchase
ment Items Vendor
Order
4.1 4.3
4.2
4.0 Record Pay
Calculate
Payroll Time Employe
Payroll
Worked e