Question

Database Schemas:

Please draw the schemas like the example and not just list the entities and attributes! Thanks in advance!

Convert the E-R diagrams to relational schema and show Primary Keys (using underline) Foreign Keys (using dotted underline) .

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

4)Ans

student(stdid, name, gender, dob, admitdate);

undstudent(stdid, major, class);

stdid is a foreign key REFERENCES student(stdid);

gradstudent(stdid, advisor, thesistitle, asststatus);

stdid is a foreign key REFERENCES student(stdid);

5)Ans

person(ssn, name, phone);

owner(ssn, spousename, profession, spouseprofess);

ssn is a foreign key REFERENCES person(ssn);

office(officeid, address, mgrname, phone);

agent(agentid, agentname, phone, officeid);

officeid is a foreign key REFERENCES office(officeid);

home(homeid, street, city, state, zip, nobedrms, nobaths, sqft, ownoccupied, commission, salesprice, ownerssn, agentid);

ownerssn is a foreign key REFERENCES person(ssn);

agentid is a foreign key REFERENCES agent(agentid);

buyer(ssn, address, minprice, bdrms, bthrms, maxprice, agentid);

ssn is a foreign key REFERENCES person(ssn);

agentid is a foreign key REFERENCES agent(agentid);

Add a comment
Know the answer?
Add Answer to:
Database Schemas: Please draw the schemas like the example and not just list the entities and attributes! Thanks in adva...
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
Active Questions
ADVERTISEMENT