Assignment 3
Assignment 3
Ans.
Multiple-Choice Questions:
3) During the ______ design phase of database design, the properties of data is given importance,
rather than its storage details.
a) conceptual b) logical c) physical d) actual
8) When the value of an attribute A is obtained from the value of an attribute B, then the attribute A
is called _______.
a) composite b) stored c) derived d) retrieved
12) An entity type without a key attribute is called _______ entity type.
a) null b) weak c) strong d) single
13) ________ specifies the set of values that can be assigned to the attribute.
a) block b) relation c) structure d) domain
16) The relationship in which an entity type participates more than once is a _____ relationship.
a) recursive b) iterative c) enumerated d) implied
17) _______ specifies the maximum number of relationship instances that an entity can participate.
a) range b) domain c) cardinality d) ceiling
20) A weak entity type always has a ______ participation constraint with respect to its identifying
relationships.
a) partial b) total c) overlap d) disjoint
TRUE or FALSE:
1. What are the main phases of database design? Write them in order.
Ans.
Symbol Meaning
MULTIVALUED ATTRIBUTE
1.
DERIVED ATTRIBUTE
2.
IDENTIFYING RELATIONSHIP
3.
ENTITY
4.
ATTRIBUTE
5.
WEAK ENTITY
6.
RELATIONSHIP
7.
KEY ATTRIBUTE
8.
PARTIAL KEY
9.
COMPOSITE ATTRIBUTE
10.
Answer the following questions based on the ER diagram for COMPANY database:
Answer the following questions based on the ER diagram for COMPANY database:
Answer the following questions based on the ER diagram for COMPANY database:
Answer the following questions based on the ER diagram for AIRPLANE database shown
below:
Answer the following questions based on the ER diagram for BANK database shown below:
Answer the following questions based on the ER diagram for BANK database shown below:
Design an attribute to hold this information using the notations ( ) for composite attributes and { }
for multivalued attributes as well as show how it can be represented in ER diagram.
Consider the following set of requirements for a university database that is used to keep track of
student’s transcripts.
The university keeps track of each student’s name, student number, National ID number, current
address and phone, permanent address and phone, birthdate, gender, class (I year, II year…), major
department, minor department, and degree program (B.Sc., B.A.,…,Ph.D.). The name of the student
should have first, middle, and last names. The permanent address should have apartment number,
street number, city, state, postal code. Both National ID number and student number must be unique
for each student.
Each department must be described by a name, department code, office number, office phone, and
college. Both name and code must be unique for each department.
Each course has a course name, description, course number, number of credit hours, level number,
and offering department. The course number should be unique for each department.
Each section has an instructor name, semester, year, course number and section number. The
section number must be unique and each course can have multiple sections taught during same
semester/year.
A grade report has a student number, student name, section number, letter grade, and numeric grade
(percentage marks).
Design an ER schema for this application and draw an ER diagram for that schema. Specify key
attributes for each entity type, and structural constraints on each relationship type.