



















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















































n Entity sets n Relationship sets n Constraints on entity sets n Constraints on relationship sets n Weak entity sets n Superclass/subclass relationships n Aggregation
high level specs
conceptual schema logical schema (in DBMS model)
miniworld
conceptual design
logical design
physical design
functional analysis
application design
transaction implementation
functional requirements Data requirements
application programs Physical schema
Requirement Analysis
Functional Design Database Design
dependent) model.
n Iterative: errors /shortcomings of original design found later can be corrected without full restart. n Interactive: any design choices made by system during design should be based on interaction with designer. n Feedback: a designer’s change made at logical and/or physical levels should be automatically translated to changes at higher levels.
supported by most modern DBMSs.
n domain constraints n key constraints
n Cardinality Constraints (mapping constraints in SKS) n Participation Constraints (existence dependencies in SKS)
n nouns, ‘things’ in the world. n E.g., students, courses, employees, departments, flights, patients, ...
n properties of entities. n E.g., course name, deptname, departure time, age, room#, ...
n In OO terminology, an entity set is similar to a class, and an entity similar to an instance
sam 62900 main austin
pat 62901 north urbana
259 10000
245 2400 364 200000
305 20000
customer account
n association between multiple entities
n set if relationships over the same entity sets
Cust-AccountRelationship set
Relationship Set Corresponding to the Relationship Cust-Account
Row in the table represents the pair of entities participating in the relationship
Customer Account John 1001 Megan 1001 Megan 2001
employee works for
manager
worker
n With each entity set a notion of a key can be associated. n A key is a set of attributes that uniquely identify an entity in entity set. n Examples: w designer may specify that {ssno} is a key for a entity set customer entity with attributes {ssno, accountno, balance, name, address} w designer may specify that {accountno} is also a key , that is, no joint accounts are permitted. n Denoted in ER diagram by underlining the attributes that form a key n multiple keys may exist in which case one chosen as primary key and underlined. Other keys called secondary keys either not indicated or listed in a side comment attached to the diagram.
and B
one entity in B, and an entity in B is associated with atmost one entity in A. n an employee has only one spouse in a married-to relationship_._
entity in B, an entity in B is associated with at most one entity in A. n an employee works in a single department but a department consists of many employees.
entities in B, and an entity in B is associated with many entities in A. n A customer may have many bank accounts. Accounts may be joint between multiple customers.
customer custacct account
opening date
Customer Account Start Date John 1001 Jan 20th^1999 Megan 1001 March 16th^1999 Megan 2001 Feb 18th^1994
Customer Account Start Date John 1001 Jan 20th^1999 Megan 1001 March 16th^1999
legal legal
customer can have only one account.
Customer Account Start Date John 1001 Jan 20th^1999 Megan 1001 March 16th^1999 Megan 2001 Feb 18th^1994
Illegal
Customer Account Start Date John 1001 Jan 20th^1999 Megan 1001 March 16th^1999
legal
customer (^) custacct account
opening date