Question 1. After completing a course in database management, you have been asked to develop a preliminary ERD for a symphony orchestra. You discover the following entity types that should be included.
• CONCERT SEASON: The season during which a series of concerts will be performed. Identifier is Opening_Date which includes Month, Day, and Year.
• CONCERT: A given performance of one or more compositions. Identifier is Concert_Number. Another important attribute is Concert_date, which consists of the following: Month, day, year, andTime. Each concert typically has more than one concert date.
• COMPOSITION: Composition to be performed at each concert. Identifier is Composition_ID, which consists of the following: Composer_Name and Composition_Name. Another attribute is Movement_Number and Movement_Name. Many, but not all, compositions have multiple movements.
• CONDUCTOR: Person who will conduct the concert. Identifier is Conductor_ID. Another attribute is Conductor_Name.
• SOLOIST: Solo artist who performs a given composition on a particular concert. Identifier is, Soloist_ID. Another attribute is Soloist_Name.
During further discussions you discover the following.
• A concert season schedules one or more concerts. A particular concert is scheduled for only one concert season.
• A concert includes the performance of one or more compositions. A composition may be performed at one or more concerts or may not be performed.
• For each concert there is one conductor. A conductor may conduct any number of concerts or may not conduct any concerts.
• Each composition may require one or more soloists or may not require a soloist. A soloist may perform one or more compositions at a given concert or may not perform any composition. The symphony orchestra wishes to record the date when a soloist last performed a given composition (Date_Last_Performed).
Draw an ERD to represent what you have discovered. Identify a business rule in this description and explain how this business rule is modeled on the ER diagram.
Answer)
Question 2: A bank has three types of accounts: checking, savings, and loan. Following are the attributes for each type of account.
CHECKING: Acct. No, Date opened, Balance, Service Charge
SAVINGS: Acct. No, Date opened, Balance, Interest rate
LOAN: Acct. No, Date opened, Balance, Interest rate, Payment.
Assume that each bank account must be a member of exactly one of these subtypes. Using generalization, develop and EER segment to represent this situation using traditional EER notation and Visio notation.
Answer)
Traditional EER Notation
Visio Notation
Question 3: Part I
For each of the following relations, determine the normal form for that relation giving your reasoning for such determination. If the relation is not in third normal form (3NF), decompose it into 3NF relations. Functional dependencies (other those implied by the primary key) are shown where appropriate.
a. CLASS (Course_No, Section_No)
b. CLASS (Course_No, Section_No, Room)
c. CLASS (Course_No, Section_No, Room, Capacity)
Room Capacity
d. CLASS (Course_No, Section_No, Course_Name, Room, Capacity)
Course_No Course_Name RoomCapacity
Answer)
a) CLASS (Course_No, Section_No) - This relation is a 3NF and needs no further modification.
b) CLASS (Course_No, Section_No, Room) - This relation is a 3NF and do not require modification.
c) CLASS (Course_No, Section_No, Room, Capacity) Room → Capacity
The relation Room → Capacity is not a 3NF because the attribute ‘Capacity’ is related to ‘Room’ and not ‘Class’. Now, this happens to be a transitive realtion and so is a 2NF. So to make the realtion a 3NF, we need to do the following:
CLASS (Course_No, Section_No, Room)
ROOM (Room, Capacity)
d) CLASS (Course_No, Section_No, Course_Name, Room, Capacity)
Course_No → Course_Name and Room → Capacity
The above relations are in 1NF.
The partial dependecy is Course_No → Course_Name
The transitive dependency is Room → Capacity
The following is the 2NF for the above relation
CLASS (Course_No, Section_No, Room, Capacity)
COURSE (Course_No, Course_Name)
The following is the 3NF for the above 2NF
CLASS (Course_No, Section_No, Room)
COURSE (Course_No, Course_Name)
ROOM (Room, Capacity)
Part II) Figure below shows a class list from Millennium College.
Convert the above user view to a set of 3NF relations using an “enterprise key.” Assume the following
• An instructor has a unique location
• A student has a unique major
• A course has a unique title
Answer)
The user view when converted to 3NF with the given assumptions is
OBJECT (OID, Object_Type)
INSTRUCTOR (OID, Instructor_Name, Instructor_Location)
COURSE (OID, Course_Title, Course_No, Instructor_Name)
STUDENT (OID, Student_No, Student_Name, Major)
GRADE (OID, Student_No, Course_No, Grade)
Question 4. Table below shows a relation called GRADE REPORT for a university.
You are required to do the following.
a. Draw a relational schema and diagram the functional dependencies in the relation in the form it’s presented.
b. Determine what normal form the relation is (currently) stating the reason why it is in such normal form.
c. Decompose the GRADE REPORT into a set of 3NF relations
d. Draw a relational schema for your 3NF relations and show the referential integrity constraints.
e. Draw an ERD of the final version of 3NF relational schema
Please provide separate answer for each of the sub parts of questions viz. a, b, c, and d and do not combine these parts.
Answer)
4)
a. Draw a relational schema and diagram the functional dependencies in the relation in the form it’s presented.
b. Determine what normal form the relation is (currently) stating the reason why it is in such normal form.
The above relation is in its 1NF (1st Normal Form), because it has dependencies and so, it cannot be depicted in its 2NF (2nd Normal Form.)
c. Decompose the GRADE REPORT into a set of 3NF relations
d. Draw a relational schema for your 3NF relations and show the referential integrity constraints.
e. Draw an ERD of the final version of 3NF relational schema
Question 5: For each of the following relations, indicate the Normal Form for that relation. If the relation is not in third Normal Form, decompose it into 3NF relations. Functional dependencies other than those implied by the Primary Key are shown where appropriate.
a) PATIENT_TREATMENT(Patient_ID, Physician_ID, Treatment_Code, Date)
b) PATIENT_TREATMENT(Patient_ID, Physician_ID, Treatment_Code, Date, Time)
c) PATIENT_TREATMENT (Patient_ID, Physician_ID, Treatment_Code, Date, Time, Patient_name, Patient_Room, Room_phone_no) Patient_IDPatient_name and Patient_RoomRoom_phone_no
d) PATIENT_TREATMENT(Patient_ID, Physician_ID, Treatment_Code, Date, Time, Patient_name,Patient_Room, Room_phone_no, Physicisn_name) Patient_IDPatient_name and Patient_RoomRoom_phone_no and Physician_ID Physician_name
Note: You may make reasonable assumptions if necessary. Please list all such assumptions made as foot notes.
Answer)
a) 3NF
b) 3NF
c) 1NF
PATIENT_TREATMENT(Patient_ID, Physician_ID, Treatment_Code, Date, Time)
PATIENT(Patient_ID, Patient_Name)
ROOM(Patient_Room, Room_Phone_No)
d) 1NF
PATIENT_TREATMENT(Patient_ID, Physician_ID, Treatment_Code, Date, Time)
PATIENT(Patient_ID, Patient_Name)
ROOM(Patient_Room, Room_Phone_No)
PHYSICIAN(Physician_ID, Physician_Name)
Question 6: Develop a 3NF Relational schema for the following ERD of small production unit
a) Map all functional dependencies
b) Map all referential integrities
c) Ensure that all relations are in 3NF (if not in 3NF, decompose them into 3NF)
Note: Remember to denote primary keys with underscores and foreign key with dash line underscore.
a) Functional Dependencies
SALE
Receipt_No
Sales_Date
SALE_ITEM
Receipt_No
Product_ID
Qty_Sold
PRODUCT
Product_ID
Description
RECIPE
Product_ID
Inventory_No
Qty_Used
INVENTORY_ITEM
Inventory_No
Item_Descript
Qty_in_Stock
Type_of_Item
Min_Order_Qty
SHIPMENT_ITEM
Shipment_No
Inventory_No
SHIPMENT
Shipment_No
Invoice_Date
Paid? Y/N
INVOICE
Invoice_No
Invoice_Date
Vendor_ID
VENDOR
Vendor_ID
Vendor_Name
b) Referential Integrities
SALE
Receipt_No
Sales_Date
SALE_ITEM
Receipt_No
Product_ID
Qty_Sold
PRODUCT
Product_ID
Description
RECIPE
Product_ID
Inventory_No
Qty_Used
INVENTORY_ITEM
Inventory_No
Item_Description
Qty_in_Stock
Type_of_Item
Min_Order_Qty
SHIPMENT_ITEM
Shipment_No
Inventory_No
SHIPMENT
Shipment_No
Invoice_Date
Paid? Y/N
INVOICE
Invoice_No
Invoice_Date
Vendor_ID
VENDOR
Vendor_ID
Vendor_Name
C) The relation between Shipment and Vendor is not in 3NF. Hence another associative entity INVOICE is created to make the relation 3NF.
Question 7 Following is the diagram depicting an EERD of Vacation Property Rentals. This organization rents preferred properties in several states. As shown in the figure there are two basic types of properties: beach properties and mountain properties.
a) Transform the diagram into a relational schema that shows referential integrity constraint (see figure 4-5 on page 161 in textbook for example).
b) For each relation, diagram the functional dependencies (see figure 4-23 or 4-27 of the textbook for example)
c) If any of the relations are not in 3NF, transform those relations to 3NF
d) Suggest an integrity constraint that would ensure that no property is rented twice during the same time interval.
Answer)
a)Referential Integrity
b) Functional Dependencies
c) 3NF
d) A property shall have one and only one rental agreement in force at one time.
You May Also Find These Documents Helpful
-
Performed and listen to them on YouTube beforehand. Turn in form no more than 10 days after event.…
- 1640 Words
- 7 Pages
Powerful Essays -
A concertmaster is the second most important person in an orchestra, symphonic band, or other musical ensemble after the conductor or director. He/she is responsible for coordinating the bowing…
- 1619 Words
- 7 Pages
Powerful Essays -
Label - NA-M.K-4.2 Performing on Instruments, Alone and With Others, a Varied Repertoire of Music…
- 627 Words
- 3 Pages
Satisfactory Essays -
ONE: If at any time during the performance you should engage in one of the three prohibited activities,…
- 2108 Words
- 9 Pages
Good Essays -
7. A _____________ is a musical composition that is usually light in mood, and meant for evening entertainment.…
- 1820 Words
- 8 Pages
Good Essays -
Throughout history, musicians and composers, who possess a unique musical talent, found themselves been employed under the patronage system and or freelance system.…
- 543 Words
- 3 Pages
Good Essays -
In order to differentiate between program music, symphonic poem, concert overtures, grandiose, or miniature compositions, we first need to go over each one individually. Each type has its own unique characteristics.…
- 1648 Words
- 7 Pages
Good Essays -
The name of the concert that I attended was called “TCU Jazz Combos” and featured a variety of jazz compositions. This concert took place in the Pepsico Recital Hall on November 14, 2012 at 7:00 in the evening. The event was casual; however, I chose to wear khaki pants and a button down shirt because I was not certain as to what the dress code would be. The performers’ names and their respective instruments were Mike Korson- Saxophone, Garrett Wingfield- Saxophone, Luke Wingfield- Trumpet, Alex Neal- Guitar, Edo Frenkel- Piano, Will Gilstrap- Bass, Russell Wharton- Drums, and Tanner Webb- Trombone. During the concert they played various jazz compositions written by some of the very performers themselves. Several other pieces were more well known jazz compositions from internationally recognized artists. The concert itself was not very crowded, with pockets of individuals scattered throughout the audience. There was definitely interaction between the performers and the audience. I found this aspect of the jazz concert to be unique to other concerts. Jazz concerts are significantly less formal than classical orchestra concerts or even piano concerts in which applause is saved for the very end. In jazz concerts, after a solo it is considered appropriate to applaud, even during the middle of a piece. Having never attended a jazz concert before, I found this to be a wonderful learning experience.…
- 881 Words
- 3 Pages
Good Essays -
| Composition for a solo instrument or instruments accompanied by an orchestra mainly. Large scale.…
- 650 Words
- 3 Pages
Satisfactory Essays -
The survey will be rather vain in defining a campaign or program to help out the rest of the year. We are dealing with two very diverse problems, one being the rescue of the rest of the year, and two, increasing the existing period’s ticket holders. As far as the rest of the season goes, there needs to be some offer that will thank existing season ticket holders for signing up for the next period. This can be accomplished in one of two ways; one can be a sizeable reduction for pre-ordering next terms tickets at this time. This way a base can be proven for the next season. When it comes to this season, a small group of concerts can be thrown together as a package and offered at a discount to those who participated in the survey. The same offer can also be promoted to the general public as well to help bolster the remaining year’s performances.…
- 900 Words
- 4 Pages
Good Essays -
Music; Through the choice of music, audience members can relate unique instruments and specific rhythms. This musical arrangement can help represent cultural identity to audience members, with an example being in section 1 and 3, the inclusion of the…
- 1357 Words
- 6 Pages
Better Essays -
1. Setting: One or two sentences. A brief description of the environment (where and when). 2. The Ensemble: A. Describe the instrumentation that was used in the group.…
- 404 Words
- 2 Pages
Good Essays -
The music played throughout all of the concerts adhered to be diverse. The instruments, the individuals performing, and the conductor all proved to be outstanding. The concerts proved to be interesting as I witnessed them, first hand.…
- 965 Words
- 4 Pages
Good Essays -
-For each instrument, there is at least one section leader. Since they are our friends or we have the same classes, we…
- 322 Words
- 2 Pages
Satisfactory Essays -
Name: Steven Jackson Email: mcbsjackson@gmail.com Advanced Diploma in Event management Assessment no.4 The legal and insurance implications of staging a concert. Before staging a concert in a locality, there are some areas that need to be considered like: • Organizational structure and legal status • Event Ownership • Contracts and agreements • Licences and permission • Insurance Organizational Structures There are five types of organisational structures each with a different legal status, namely: •…
- 3121 Words
- 13 Pages
Powerful Essays