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

An overview of database design using unified modelling language (uml) class diagrams and their translation into database schemas. Topics include the history of uml, the process of translating uml diagrams into database schemas, functional dependencies and normal forms, file access methods, query optimization, and transactions and recovery. The document also mentions the use of sql and the relational model in the context of database design.

Typology: Slides

2011/2012

Uploaded on 03/12/2012

kyleaus
kyleaus 🇦🇺

5

(4)

12 documents

1 / 68

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Relational Databases - Comp2400 / Comp6240
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
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44

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)