Question

Map the following ER diagram to relations by writing SQL statements to capture as many of the constraints as possible. If you cannot capture some constraints, explain why.

FILE DESIGN REVIEW VI HOME Cut Copy Format Painter INSERT VIEW Sign in Find ▼ AaBbCcC AaBbCcI AaBbCcI ac Replace Paste ーー:, 2 ▼ m▼ | TNormal TNoSpac Heading 1 Heading 2 Title Subtitle Subtle Em Emphasis Select Clipboard Font Paragraph Styles Editing phone ame location name birthday ID salary Employees Has Childrern comnission bonus Salespersons salePrice saleDate Sales Cars madeYear serialINO manufacturer model PAGE 3 OF 5 609 WORDS Lx + 100% 7:01 AM 10/2/2015 Search the web and Windows 2)/\恤后4»)부

0 0
Add a comment Improve this question Transcribed image text
Answer #1

create table Employees (

ID primary key,

name varchar2(20),

phone varchar2(20),

location varchar2(100),

salary decimal(10,2)

);

create table Children (

name varchar2(20),

birthday DATETIME,

foreign key (name) references Emloyees(name)

);

create table Salespersons(

commission decimal(10,2),

bonus decimal(10,2)

);

create table Sales(

saleDate DATETIME,

salePrice decimal(10,2)

);

create table Cars(

madeYear DATETIME,

manufacturer varchar2(10),

model varchar2(10),

serialNo In

);

Add a comment
Know the answer?
Add Answer to:
Map the following ER diagram to relations by writing SQL statements to capture as many of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT