



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Exam; Class: DATABASE SYSTEMS; Subject: COMPUTER SCIENCE; University: Texas A&M University; Term: Unknown 1989;
Typology: Exams
1 / 7
This page cannot be seen from the preview
Don't miss anything!




CPSC 310: Database Systems / CSPC 603: Database Systems and Applications Exam 1 October 5, 2005
Name:
Instructions:
Please sign the academic integrity statement: “On my honor, as an Aggie, I have neither given nor received unauthorized aid on this academic work. In particular, I certify that I have not received or given any assistance that is contrary to the letter or the spirit of the guidelines for this exam.”
Signature:
References for these problems:
Hall, 2005)
(a) (4 pts) Give two design guidelines for E/R diagrams.
(b) (4 pts) Define two kinds of anomalies can occur with poorly-structured relations.
(c) (4 pts) What is the definition of Third Normal Form (3NF)? What is its advantage over Boyce-Codd Normal Form?
(d) (4 pts) In SQL, name one advantage of set semantics over bag semantics and one advantage of bag semantics over set semantics.
(b) (13 pts) Convert the E/R diagram above into a relational schema. Use the algorithm presented in class and combine relations according to those rules. Handle the is-a hierarchy using the NULLs method.
Consider the relation Lending(branch name, branch city, assets, customer name, loan number,amount) with the following functional dependencies:
(a) (4 pts) How many keys does this relation have? List them.
(c) (4 pts) Calculate all additional nontrivial FDs that follow from those given above.
(d) (4 pts) Why is the relation Lending not in Boyce-Codd Normal Form?
(e) (7 pts) Convert the relation Lending into Boyce-Codd Normal Formal. Be sure to show your work, i.e., explain the process you are using.
Consider the following (informal) database schema for our familiar example from class:
and phone number
address, and phone number
(assume each store sells each candy at only one price)
Write queries to find the following information.
(a) (7 pts) Find the names of all candies, and their prices, sold by the store ’HEB’.
(b) (7 pts) Find the name and phone number of every consumer who likes the candy ’Snickers’.
(c) (7 pts) Find all stores frequented by both ’Moe’ and ’Curly’.