Problem 2:
Composite and multi-valued attributes can be nested to any number of levels. Suppose we want to design an attribute for a STUDENT entity type to keep track of previous college education. Such an attribute will have one entry for each college previously attended, and this entry is composed of: college name, start and end dates, degree entries (degrees awarded at that college, if any), and transcript entries (courses completed at that college, if any). Each degree entry is formed of degree name and the month and year it was awarded, and each transcript entry is formed of a course name, semester, year, and grade. Design an attribute to hold this information.
In the solution curly braces { } are used to group multivalued attributes and open braces () for composite attributes
solution:
STUDENT {Previous_Education(college_name,start_date,end_date,degree)
{Degree (degree_name, month ,year) }
{Transcript (course_name,semester,year,grade) }
}
to store the previous education details we have 3 multivalued attributes namely
1.Previous_Education
2.Degree
3.Transcript
all the 3 multivalued attributes have composites attributes also
for Previous_Education the composite attributes are college_name,start_date,end_date,degree.
The entire multivalued attributes are placed inside the STUDENT entity
Problem 2: Composite and multi-valued attributes can be nested to any number of levels. Suppose we...
Problem 1 Consider the following set of requirements for a university database that is used to keep track of students' transcripts. (a) The university keeps track of each student's name, student number, social security number, current address and phone, permanent address and phone, birthdate, sex, class (freshman, sophomore, -, graduate), major department, minor department (if any), and degree program (B.A., B.S., ...., Ph.D.). Some user applications need to refer to the city, state, and zip of the student's permanent address,...
Conceptual data diagram The ABC university keeps track of each student's name, student number, social security number (I C number), current address and phone, permanent address and phone, birthdate, sex, class (alpha, Beta, Gamma ..., graduate), major department, minor department (if any), and degree program (B.A., B.S., ..., Ph.D.). Some user applications need to refer to the city, state, and zip of the student's permanent address, and to the student's last name. Both social security number and student number have...