- We have
2 employees in
the company:
Name SSN BDate Address Sex Salary
===============================================================================
John B Smith 123456789 09-JAN-55 731 Fondren, Houston, TX M 30000.00
James E Borg 888665555 10-NOV-27 450 Stone, Houston, TX M 55000.00
|
We have 2 departments in
the company:
dname dnumber locations
====================================================
Research 5 Atlanta, Denver
Administration 4 NY, Miami, Houston
|
Suppose that:
- John B Smith
works for the
Research department
- James E Borg
works for the
Administration department
|
We can
represent
the "works-for" information
as follows:
Note that we
only use the
keys in each
entity schema to represent
a relationship
(Other attributes are
not necessary and
when included will
cause duplication of infomation !!!)
|