Relational Databases-Lecture 08 Slides-Computer Science, Slides of Relational Database Management Systems (RDBMS)

Relational Databases, Modelling and Translation Example, Derived Attributes and Views, Object Diagram Test Case, Dr Mohammad Yamin, Ms Zoe Brain, Lecture Slides, Relational Databases, Australian National University, Australia.

Typology: Slides

2011/2012

Uploaded on 03/12/2012

kyleaus
kyleaus 🇦🇺

5

(4)

12 documents

1 / 35

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Relational Databases - Comp2400 / Comp6240
Lecture 10: Modelling and Translation Example
Text problem to database solution, via UML
Assignment 1 last year described a business problem and
asked for a database design and queries to solve it.
Today we work through the process of producing a complete
solution.
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

Partial preview of the text

Download Relational Databases-Lecture 08 Slides-Computer Science and more Slides Relational Database Management Systems (RDBMS) in PDF only on Docsity!

Relational Databases - Comp2400 / Comp

Lecture 10: Modelling and Translation Example

Text problem to database solution, via UML

Assignment 1 last year described a business problem and asked for a database design and queries to solve it. Today we work through the process of producing a complete solution.

The Assignment

See Assignment 1 from last year. http://cs.anu.edu.au/students/comp2400.2007/assignm it is based on a real business operating in Canberra (where Greg worked before discovering Australia Post)

The Assignment

See Assignment 1 from last year. http://cs.anu.edu.au/students/comp2400.2007/assignm it is based on a real business operating in Canberra (where Greg worked before discovering Australia Post) Greg also has the benefit of having seen many attempted solutions, some of which were very good Your first assignment will be similar, and is coming soon

Read the Assignment!

Many problems resulted from people not reading what was asked.

Read the Assignment!

Many problems resulted from people not reading what was asked.

Problem statements, and other relevant documents are a good starting point for modelling. nouns tell you the classes, eg product, order (unless there is only one instance, eg warehouse) underlining the nouns can be a good way to start

Read the Assignment!

Many problems resulted from people not reading what was asked.

Problem statements, and other relevant documents are a good starting point for modelling. nouns tell you the classes, eg product, order (unless there is only one instance, eg warehouse) underlining the nouns can be a good way to start same thing will be described in different ways

Read the Assignment!

Many problems resulted from people not reading what was asked.

Problem statements, and other relevant documents are a good starting point for modelling. nouns tell you the classes, eg product, order (unless there is only one instance, eg warehouse) underlining the nouns can be a good way to start same thing will be described in different ways choose good names (short, obvious, descriptive) look for properies of these things (attributes), and relationships between them (associations)

Keep it simple, solve the problem

You don’t need to model everything mentioned in the document, you just need to solve the problem! models can easily grow out of control

Keep it simple, solve the problem

You don’t need to model everything mentioned in the document, you just need to solve the problem! models can easily grow out of control get clear on the purpose of the model, and leave everything else out! (however, some allowance for future needs can be prudent)

Keep it simple, solve the problem

You don’t need to model everything mentioned in the document, you just need to solve the problem! models can easily grow out of control get clear on the purpose of the model, and leave everything else out! (however, some allowance for future needs can be prudent) the specific requirements statements tell you what you must be able to produce

Keep it simple, solve the problem

You don’t need to model everything mentioned in the document, you just need to solve the problem! models can easily grow out of control get clear on the purpose of the model, and leave everything else out! (however, some allowance for future needs can be prudent) the specific requirements statements tell you what you must be able to produce you can mentally “query” or navigate a UML class diagram, and see what’s missing do we need to model customers here?

Keep it simple, solve the problem

You don’t need to model everything mentioned in the document, you just need to solve the problem! models can easily grow out of control get clear on the purpose of the model, and leave everything else out! (however, some allowance for future needs can be prudent) the specific requirements statements tell you what you must be able to produce you can mentally “query” or navigate a UML class diagram, and see what’s missing do we need to model customers here? no!

Decisions Decisions

How should we model envelopes and boxes? a Packaging class?

Decisions Decisions

How should we model envelopes and boxes? a Packaging class? an attribute of an Order class?