



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




(5 points – 1 pt each) Expected Time: 5 minutes. ______ 1. Unary relationships can have many-to-many connectivity. ______ 2. The value of a primary key can be null. ______ 3. The value of a foreign key can be null. ______ 4. A strong entity type is one that exists independently of other entity types. ______5. A derived attribute is an attribute whose value can be calculated from related attribute values.
(10 points – 2 points each) Expected Time: 5 Minutes. ______ 6. Which of the following is NOT a type of anomaly created by data redundancy? a. modification anomaly b. insertion anomaly c. junction anomaly d. deletion anomaly ______ 7. Each column has a specific range of values known as the _______? a. mountain range b. column range c. permissible domain d. attribute domain ______ 8. The real power behind the relational database, allowing the use of independent tables linked by a common attribute, is: a. SELECT b. PROJECT c. JOIN d. INTERSECT ______ 9. Problems inherent in the many-to-many relationship in a relational environment can best be avoided by: a. using the hierarchical model b. placing all entities in one table c. resolving the M:N relationship into two 1:M relationships d. enforcing referential integrity rules
______ 10. A recursive relationship is a(n) __________ relationship. a. unary b. binary c. ternary d. plenary
(20 points) Expected Time: 20 Minutes. Consider the following situation for Tiny College: A student may take between one and six classes a semester. In order to be offered, each class must have at least 10 students enrolled. The maximum number of students in each course is 45. There may be many classes offered for a particular course, and in some semesters no classes are offered due to low enrollment. Tiny College encourages multi-disciplinary course offerings, and in some cases, more than one department may run courses. Classes at Tiny College can be team-taught by up to three different professors, or may be taught in the traditional manner with only one professor teaching a class. Professors may be on a sabbatical leave, and teach no courses in a particular semester. Create the E-R Diagram that describes the situation at Tiny College. Make sure to indicate connectivity, cardinality and participation. Please label the relationships. State clearly any assumptions that you make. The assumptions must not contradict the material already presented. Be sure to resolve any M:N relationships that may exist. You may want to practice first on scratch paper.
b. Draw the corresponding relational schema. Underline primary keys, and circle any foreign keys. (10 points)
(15 points) Expected Time: 10 Minutes Consider the following: We are trying to keep track of stocks and mutual funds. We have just begun designing our database, and have created an initial version of the database with the following two entities and their attributes: MUTUAL_FUNDS(MF_ID, MF_Name, MF_Rating) STOCK(Stock_ID, Stock_Name, Stock_Price) Each stock is available in at least one but not more than four different mutual funds. Each mutual fund contains between 100 and 300 different stocks. a. What type of relationship exists between those two entities: 1:M, M:N, or 1:1. (Circle one) b. Draw an ERD for this relationship that can be implemented in a relational database. Include connectivity, participation, and cardinality. Please label the relationships. State clearly any assumptions that you make. The assumptions must not contradict the material already presented. c. Draw a relational schema corresponding to this ERD. Please make sure to account for the current number of each stock in a particular mutual fund.
(10 points) Expected Time: 10 Minutes Consider the following ERD: (a) Express the relationship “Prescribes” in words. Be sure to capture all aspects (i.e. connectivity, cardinality and participation) of the relationship in your description. (b) Express the relationship “Takes” in words. Be sure to capture all aspects (i.e. connectivity, cardinality and participation) of the relationship in your description.
Has prescribes
Takes
Interacts with