Professional Documents
Culture Documents
Datamodeling - E R Diagram
Datamodeling - E R Diagram
DATA OBJECTS
RELATIONSHIPS
Problem Definition:
(1) Course
(2) Section
(3) Room
- Name
- Department
- Code
Attributes of SECTION:
- S_Number
- Enrollment
Attributes of ROOM:
- R_Number
- Capacity
- Building
Keys
ENTITY-RELATIONSHIP DIAGRAM
- Ellipses-represent Attributes
-One to Many
-Many to One
RELATIONSHIP SETS
-Derived Attributes
-Candidate Keys
-Entity-Relationship Diagram
ACCOUNT
ACCOUNT- ACCOUNT- BALANCE
TYPE NUMBER
SA 25896 50000
SA 43965 40000
SA 32963 60000
CA 56939 80000
CA 39683 30000
CA 46854 70000
25896 50000
43965 40000
32963 60000
CHECKING ACCOUNT
ACCOUNT NUMBER BALANCE
56939 80000
39683 30000
46584 70000
Account
SPECIALIZATION
ISA
Interest-rate Overdraft-amount
Savings-account Checking-account
ISA
EMPLOYEE
When you have an Employee and three teams namely Analysis Team,
Coding Team and Testing Team, he can be member of any team. Also,
he/she being the member of more than one team is not ruled out.
These are called Design constraints. These are User Defined
Constraints.
Account DISJOINT
ISA CONSTRAINT
Interest-rate Overdraft-amount
Savings-account Checking-account
ISA
SAVINGS ACCOUNT
ACCOUNT NUMBER BALANCE
25896 50000
43965 40000
32963 60000
56939 80000
39683 30000
46584 70000
ACCOUNT
ACCOUNT- ACCOUNT- BALANCE
TYPE NUMBER
SA 25896 50000
SA 43965 40000
SA 32963 60000
CA 56939 80000
CA 39683 30000
CA 46854 70000
The above tables namely CHECKING ACCOUNT and SAVINGS ACCOUNT can
be combined into a single table ACCOUNT by adding an additional
attribute which specifies the type of account.
customer-name customer-city
AGGREGATION loan-officer
employee
e-social security telephone-number
employee-name
customer-name customer-city
loan-officer
employee
employee-name
customer-name customer-city
payment-date
Loan-number amount
payment-number payment-amount
RELATIONSHIP SETS
customer-name customer-city
Account
GENERALIZATION
ISA
Interest-rate Overdraft-amount
Savings-account Checking-account
ISA
customer-name customer-city
AGGREGATION loan-officer
employee
employee-name