Lecture 1
• Enhanced Entity Relationship (EER) Data Model
• Methods to describe a universe of discourse (a
business area) using the EER Data Model
Database Design and Data • The Relational Data Model
Modelling - an Overview • Mapping of an EER design onto a Relational
Database Implementation
• How to describe and manipulate a relational
database using the Structured Query Language
Week 1 (SQL).
• Principles of good database design
© 2010 Griffith University 1 © 2010 Griffith University 2
Information or Data?
The Universe of Discourse
(UoD) • Data: facts
• The UoD is that domain of the enterprise • Information: interpreted data (what element
about which information is to be stored in of news is carried by the data)
the database (accounting, personnel, • Databases store data but users interpret the
materials management, scheduling, product retrieved data and it becomes information
catalog, customers...etc) (for them)
1
Example Entity Relationship Relation schema
Diagram Relation name
CUSTOMER Attributes
name address
customer Holds account
ACCOUNT
number balance
name address number balance
CUST_ACCT
name number
Attribute values
“Show names and addresses of customers “Show names and addresses of customers
with balances > $10,000” with balances > $10,000”
2
SQL
The query
“Show names and addresses of customers
with balances > $10,000”
The End
can be expressed as:
SELECT name, address
FROM customer c , account a, cust_acct ca
WHERE
c.name = ca.name AND
ca.number = a number AND
a.balance >10000;
© 2010 Griffith University 13 © 2010 Griffith University 14