Database Design Concepts and Practices - PowerPoint PPT Presentation

1 / 30
About This Presentation
Title:

Database Design Concepts and Practices

Description:

Rental item. Database item. Pile. Others are abstract. Scanner. Stream ... DVD rental is a rental. A little Quiz (cont'd)... Class or Object? Animal. Dog. Bird ... – PowerPoint PPT presentation

Number of Views:174
Avg rating:3.0/5.0
Slides: 31
Provided by: keithT59
Category:

less

Transcript and Presenter's Notes

Title: Database Design Concepts and Practices


1
Database Design Concepts and Practices
  • Keith T. Weber
  • GIS Director
  • Idaho State University

2
Basic Steps in Database Design
  • Understand and document the business needs.
  • Problem statement
  • Business object types
  • Business relationships
  • Business constraints
  • Create an ERM
  • Data and process inventory
  • Develop tuple types
  • Tuple types to tables
  • Integrity
  • Implement the database

3
Todays goal
  • Provide details regarding database design using
    UML Visual Modeling techniques.
  • Apply design concepts in the development of a
    mock database.

4
Database Design
  • Why spend so much time and effort?
  • Efficiency (speed, storage)
  • Client satisfaction
  • Flexibility
  • Cost savings realized

5
Design Considerations
  • Basic steps (described earlier)
  • Data types
  • Normalization
  • With 1 table, relationships must be examined

6
Relationships
  • Determine where relationships exist between
    tables
  • Determine the type of relationship that exists
  • One-to-one
  • One-to-many
  • Many-to-one
  • Many-to-Many

7
Generic Design Symbology
Database
Table
8
Generic Table Symbology
  • Table name
  • Divider
  • List of all attributes stored in this table as
    they will appear in the table

9
Generic Relationship Symbology
  • Draw schema of RDB
  • Determine relationship fields
  • Connect

Table A
A_ID Relate_field
Table B
B_ID Relate_field
10
Symbolizing Relationship Type
Table A
1..1
1..1
  • One-to-one
  • One-to-many
  • Zero?

A_ID Relate_field
1..1
1..M
1..1
Table B
B_ID Relate_field
1..M
11
Questions?
12
Rational Rose Software
  • What is Rational Rose?
  • CASE Tool
  • Computer Assisted Software Engineering tool
  • Performs visual modeling.
  • Object Oriented design

13
Object-Oriented Fundamentals How is Resiliency
and Flexibility Achieved?
  • Encapsulation
  • Classes and objects
  • Polymorphism
  • Relationships between Classes
  • Inheritance
  • Superclass-Subclass relationship

14
What is a CLASS?
  • A class is a computer construct representing a
    concept bound in a cohesive package
  • Some are concrete (i.e. real world)
  • Bank account
  • Rental item
  • Database item
  • Pile
  • Others are abstract
  • Scanner
  • Stream
  • Math

15
Inheritance
  • Is-a relationship
  • Relationship between a more general class
    (superclass) and a more specialized class
    (subclass)
  • Every
  • savings account is a bank account
  • DVD rental is a rental

16
A little Quiz (contd)
  • Class or Object?

The concept of polymorphism!
17
Graphical Notations
  • Booch
  • OMT
  • UML

Booch?
18
For More Information
  • To satisfy your quest for more information on
    this topic you can visit
  • http//www-st.inf.tu-dresden.de/CoFI/tutorial.pdf
  • http//www.cs.bris.ac.uk/Teaching/Resources/COMS30
    203/Rationals_intro/quatrani_intro_UML.pdf

19
Modeling Languages
  • XMI
  • XML

XML Metadata Interchange
eXtensible Markup Language From the lineage of
HTML etc.
20
For More Information
  • You may wish to visit
  • http//www.dcs.ed.ac.uk/home/pxs/XMI/tutslides2up.
    pdf

21
Object Oriented Design
  • How does it fit?

22
Various CASE Diagrams
  • Use Case
  • Sequence
  • Collaboration
  • Class diagrams
  • State-Transition
  • Component
  • Deployment

23
Just a Few Examples
  • Use Case diagram

24
  • State-transition (activity)

25
  • Class diagrams

26
Process
  • Inception
  • Elaboration
  • Construction
  • Transition

27
Elaboration Exercise
  • Divide into two task force teams
  • Red team
  • Yellow team
  • Create a list of things that are
  • Red
  • Yellow
  • Brainstorm for 5 minutes

28
Construction
  • Use a Framework
  • Create your visual model
  • (oh yeahsave your model frequently)

29
Let's check it out...
30
Questions?
  • Your assignment
  • Form task-force teams
  • Use the exercise handout as a guideline to design
    a relational database
Write a Comment
User Comments (0)
About PowerShow.com