2011-03-03 1
Database Systems
1
Creating a Database System
Design Construction Application Usage
2
Step 0 – Analyze
- Analyze the domain
– Learn what things the system is intended to handle. – Learn what the constraints of the domain are.
- Analyze the system
– Learn what the system is intended to do, what
- perations it should perform.
- We’ve partly done part of this for you…
3
Step 1 – Design
- Design the database
– Create a schema that captures the constraints
- f the domain.
- E-R diagram, translated to a set of relation
schemas.
– Note any constraints that are not directly captured by the structure of the schema.
- Value constraints.
- Multiplicity constraints.
- Broken dependencies.
4
Course Objectives – Design
When the course is through, you should
– Given a domain, know how to design a database that correctly models the domain and its constraints.
”We want a database that we can use for scheduling courses and lectures. This is how it’s supposed to work: …”
5
The Relational Data Model
- Relations are sets of tuples.
– Tuples are sets of data. – All tuples in a relation have the same set of attributes with values. – A database schema is a set of interconnected relation schemas.
- Relations are a very simple model, mapping well
to how we tend to ”think” about data.
- Most DBMS of today use a relational model.
6