UML and SQL Models and Languages Database design is a process of modeling an enterprise in the real world Database.

Slides:



Advertisements
Similar presentations
Exercise 1 Consider the ER diagram below. Assume that an employee may work in up to two departments or may not be assigned to any department. Assume that.
Advertisements

Data Bits Models Classes & Schemes Rows & Tables Keys Associations $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 Final DataBit.
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
CS 425/625 Software Engineering System Models
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Chapter 14 (Web): Object-Oriented Data Modeling
Lecture Eleven Entity-Relationship Modelling
Documenting Requirements using Use Case Diagrams
Data modelling uses two main techniques Entity relationship (E-R) modelling: a top- down approach Normalisation: a bottom-up approach.
Information Resources Management January 30, 2001.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
UML Notations Activity diagrams State diagrams Class diagrams Use-case diagrams.
Murali Mani The Entity- Relationship Model. Murali Mani Database Design Stages Application Requirements Conceptual Design Logical Design Physical Design.
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
Chapter 14: Object-Oriented Data Modeling
Entity-Relationship Design
Jennifer Widom UML UML Data Modeling. Jennifer Widom UML Modeling Data Modeling How to represent data for application  Relational model  with design.
Chapter 14: Object-Oriented Data Modeling
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
Chapter 13 (Online): Object-Oriented Databases
Systems Analysis and Design in a Changing World, Tuesday, Feb 27
Systems Analysis and Design in a Changing World, Fifth Edition
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience.
5 Systems Analysis and Design in a Changing World, Fourth Edition.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Lecture 3 Uses Cases Topics UML Use Cases pop quiz Readings: Chapter 3 January 24, 2008 CSCE 492 Software Engineering.
Entity-Relationship Modeling Based on Chapter 12.
CHAPTER 13 (ONLINE): OBJECT-ORIENTED DATA MODELING © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
1 © Prentice Hall, 2002 Chapter 14: Object-Oriented Data Modeling Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 15: Object-Oriented Data Modeling Modern Database Management 9 h Edition Jeffrey A.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 13 (Online): Object-Oriented Data Modeling Modern Database Management 10 th Edition.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
5 Systems Analysis and Design in a Changing World, Fifth Edition.
Database Application Design and Data Integrity AIMS 3710 R. Nakatsu.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
 An entity-relationship diagram (ERD) is a specialized graphic that illustrates the interrelationships between entities in a database.
ITEC 3220A Using and Designing Database Systems Instructor: Prof Z. Yang Course Website: 3220a.htm
UNIT_2 1 DATABASE MANAGEMENT SYSTEM[DBMS] [Unit: 2] Prepared By Lavlesh Pandit SPCE MCA, Visnagar.
ITEC 3220A Using and Designing Database Systems Instructor: Gordon Turpin Course Website: Office: CSEB3020.
Entity-Relation Model. E-R Model The Entity-Relationship (ER) model was originally proposed by Peter in 1976 ER model is a conceptual data model that.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
The Entity-Relationship Model CIS 4301 Lecture Notes 1/12/2006.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
1 Unified Modeling Language. 2 UML  UML is designed to model software, but has been adapted as a database modeling language. – No multiway relationships.
1 CS 430 Database Theory Winter 2005 Lecture 3: A Fifty Minute Introduction to Data Modeling.
1. 2 Standards group: ODMG = Object Data Management Group. ODL = Object Description Language, like CREATE TABLE part of SQL. OQL = Object Query Language,
5 Systems Analysis and Design in a Changing World, Fourth Edition.
Data Modeling Using the Entity- Relationship (ER) Model
Data Modeling Using the ERD
Entity-Relationship Model
Data Modeling Using the Entity- Relationship (ER) Model
DATA REQIREMENT ANALYSIS
Chapter 5: Object Oriented Analysis and Design
Entity-Relationship Modeling
ER MODEL Lecture 3.
UML UML Data Modeling.
UML UML to Relations.
Lec 3: Object-Oriented Data Modeling
UML UML to Relations.
Systems Analysis – ITEC 3155 Modeling System Requirements – Part 2
Entities Things about which you need to store data. One entity for each different thing. At least two attributes At least two occurrences Not a property.
ITEC 3220A Using and Designing Database Systems
MIS2502: Data Analytics Relational Data Modeling
Software requirements
Guide to Modeling Keys to E-R diagrams.
Guide to Modeling Keys to E-R diagrams.
Presentation transcript:

UML and SQL

Models and Languages Database design is a process of modeling an enterprise in the real world Database is a model of the real world. Some models or languages: – Entity-Relationship (ER) model is used in many database development systems. It can be represented in a graphic way. – Unified Modeling Language (UML): it is an object- oriented modeling language.

Classes and schemes Class: A UML class (ER term: entity) is a thing that we would like to model. – E.g., in a student enrollment database, classes will be: student, enrollment, course. Attribute (UML and ER, properties in OO languages): describing the features of members in the class.

Associations Associations (UML) or relationship (ER) represents how two classes are functionally connected. Multiplicity of the association (UML) vs. cardinality of relationship (ER)

Associations Each customer places zero or more orders, each order is placed by one and only one customer.

Association

Design Pattern: M:N Business rules: Library Loan A customer is any person who has registered with the library and is eligible to check out books. A catalog entry is essentially the same as an old-fashioned index card that represents the title and other information about books in the library, and allows the customers to quickly find a book on the shelves. A book-on-the-shelf is the physical volume that is either sitting on the library shelves or is checked out by a customer. There can be many physical books represented by any one catalog entry. A loan event happens when one customer takes one book to the checkout counter, has the book and her library card scanned, and then takes the book home to read. Each Customer makes zero or more Loans. Each Loan is made by one and only one Customer. Each Loan checks out one and only one BookOnShelf. Each BookOnShelf is checked out by zero or more Loans. Each BookOnShelf is represented by one and only one CatalogEntry (catalog card). Each CatalogEntry can represent one or more physical copies of the same book-on- the-shelf.

Design Pattern: M:N

Design Pattern: SubKey

Design Pattern: Repeated Attributes

Design Pattern: Multivalued attributes

Design Pattern: Enumerated values Some attribute values can be specified by a well-defined, reasonably-sized set of constant values (such as cities, colors, gender, states) Look-up table (combo box, list box) will be a good way to go to avoid typos and keep consistency (easy for updating)

Design Pattern: Enumerated values

Design Pattern: Subclass

Design Pattern: Aggregation

Design Pattern: Recursive association