Docsity

Database Design and Implementation: From UML Class Diagrams to Database Schemas, Slides of Relational Database Management Systems (RDBMS)

Partial preview of the text

Download Database Design and Implementation: From UML Class Diagrams to Database Schemas and more Slides Relational Database Management Systems (RDBMS) in PDF only on Docsity!

Relational Databases - Comp2400 / Comp

Lecture 4: Overview of Database Design and DBMS Implementation

the rest of the overview

Modelling with UML Translating a UML Class Diagram to a Database Schema Normal Forms and Bottom-up Schema Synthesis File access methods Query Optimisation Transations and Recovery

Announcements

There will be NO LECTURE next Wednesday 6 August (and probably other Wednesdays in lab-weeks, stay tuned)

Announcements

There will be NO LECTURE next Wednesday 6 August (and probably other Wednesdays in lab-weeks, stay tuned) Greg will be taking the Tuesday 9am lab, not the Thursday 9am one as previously speculated Some people have not yet enrolled in a lab group, please do so before next week

Announcements

There will be NO LECTURE next Wednesday 6 August (and probably other Wednesdays in lab-weeks, stay tuned) Greg will be taking the Tuesday 9am lab, not the Thursday 9am one as previously speculated Some people have not yet enrolled in a lab group, please do so before next week Why only 5 enrolments in the Friday 9am group???

Today: Everything but the Relations!

UML Model

Relational Model

Computer

translation

DBMS implemention

Last Thursdays lectures introduced the middle of the three conceptual levels Today we overview the top and bottom

Today: Everything but the Relations!

UML Model

Relational Model

Computer

translation

DBMS implemention

Last Thursdays lectures introduced the middle of the three conceptual levels Today we overview the top and bottom This material will be covered in the 2nd half of the course

ER and Conceptual Modelling

The entity-Relationship model, and its diagrams, were introduced by Chen in 1976 to simplify database design This began a huge research field “conceptual modelling”, which aims to capture requirements using “real world” concepts (entity, relationship) rather than computer or mathematical concepts

UML and Model Driven Development

conceptual modelling and object oriented ideas used by “methodologists” around 1990

UML and Model Driven Development

conceptual modelling and object oriented ideas used by “methodologists” around 1990 Mid 1990’s, main methodologists join forces creating the Unified Modelling Language (UML) Complete systems created using just UML and tools (way of the future?)

UML and Model Driven Development

conceptual modelling and object oriented ideas used by “methodologists” around 1990 Mid 1990’s, main methodologists join forces creating the Unified Modelling Language (UML) Complete systems created using just UML and tools (way of the future?) Many diagram types, but we will only use simple class diagrams, mostly equivalent to ER

UML and Model Driven Development

conceptual modelling and object oriented ideas used by “methodologists” around 1990 Mid 1990’s, main methodologists join forces creating the Unified Modelling Language (UML) Complete systems created using just UML and tools (way of the future?) Many diagram types, but we will only use simple class diagrams, mostly equivalent to ER (we ignore important semantic differences between ER and UML) I am biased, but I think the UML diagrams look much simpler and are easer to understand!

Lab Scenario in UML

Employee fname: String minit: String lname: Char bdate: Date address: String sex: Char salary: Integer

Manages startDate: Date

Department name: String

Location name: String

Project name: String

0..1 supervisor

supervisee*

employs4..* works for0.. managed by 1 manages0.. 1 controlled by *controls

0..*

0..

1

0..

The database we will use in the first lab is adapted from [E&N Figure 5.5, 5.6]. It is shown as a UML class diagram in [E&N Figure 3.16]. Here is an adapted (and corrected!) version to match our lab material.

UML Elements - Class

The boxes represent classes. They represent a kind of thing that can exist in our scenario. Each class has many objects , its instances.

the top compartment contains the class name

UML Elements - Class

The boxes represent classes. They represent a kind of thing that can exist in our scenario. Each class has many objects , its instances.

the top compartment contains the class name the middle compartment contains the attributes (warning - same word, different context)