Sei sulla pagina 1di 3

Draw EER diagram for the problem statement.

Show clearly the constraints like


PARTIAL OVERLAPPING, TOTAL OVERLAPPING, PARTIAL DISJOINT, TOTAL DISJOINT, UNION
etc.

Select correct statement(s) from the following. Give reason for your answer.
Duration: 10 min
1. ART_OBJECTS and PAINTING, SCULPTURE, STATUE is a
PARTIAL OVERLAPPING
TOTAL OVERLAPPING
PARTIAL DISJOINT
TOTAL DISJOINT
2. ART_OBJECTS and PERMANENT _COLLECTION, BORROWED is a
PARTIAL OVERLAPPING
TOTAL OVERLAPPING
PARTIAL DISJOINT
TOTAL DISJOINT

3) ART_OBJECTS to EXHIBITIONS is a
N:1 , Total- Partial mapping
N:1 Partial � Total mapping
M:N , Total- Partial mapping
M:N Partial � Total mapping
4) ART_OBJECT to ARTIST is a
N:1 , Total- Partial mapping
N:1 Partial � Total mapping
M:N , Total- Partial mapping
M:N Partial � Total mapping
5) In a Unary relationship, identify the true statements
Foreign key is not required.
Role of the entity is mentioned.
M:N cardinality is not possible
Foreign key is from itself
Primary key and foreign keys are same.
6) For M:N relationship, identify the true statements
It is required to add Primary key of M side entity into N side entity as foreign
key and primary key from N side entity to M side entity as foreign key.
It is sufficient to add one of the primary key into other entity as foreign key.
It is required to create a table containing both the primary keys as foreign keys.
No need to create foreign keys.

Questions for your reference.


NOTE:
1. For multiple choice questions, there can be more than one correct answer.
2. Justify your answers

Select correct statement(s) from the following.


1. Following are the disadvantages of DBMS compared with file systems
a. Ensuring Consistency is difficult
b. Performance is not adequate
c. Cost is high
d. Securing a data is difficult
e. It is very complex
f. Eliminating redundancy is a challenge
2. Following are the advantages of File system compared with DBMS
a. Security can easily maintain by writing program
b. High Performance
c. Moderate Cost
d. Data Isolation is guaranteed.
e. Recovering data from failure is possible through backup
f. Concurrent operations on files is possible.
3. For following schema answer next question:
Employee( PAN, EID, Mobile, Fname, Lname, Gender, DoJoining, experience)
Department(Dept. no, dname, telephone, Manager_EID)
3.1. State which statements are true
a. (PAN, Gender) is a superkey.
b. PAN, Mobile, EID are candidate keys
c. (Fname, Lname, DoJoining) is a valid key
d. (Fname, Lname) is composite attribute of Name.
e. DBA chooses candidate key.
f. Manager_EID is a primary key.

3.2. State which statements are true


a. There is no derived attribute in the table.
b. (Lname, DoJoining) is a super key.
c. DBA chooses primary key from super keys.
d. Dname is a candidate key.
e. PAN can be a multivalued attribute.
f. (Dept. no, dname) together form kay for dept relation(table)

4. Fill in the blanks


4.1. Each classical song is written in particular Vrutta. A Vrutta may be used to
write many songs and there can be no song written in the Vrutta. is a
_______________ cardinality and Vrutta is participated in relation __________ and
song is participated in relation __________.

4.2. A bench is Kept in the classroom and classroom can have many benches, is a
_______________ cardinality and bench is participated in relation __________and
classroom is participated in relation __________.

4.3. A particular type of sports car is a favourite for each player participated
in tournament, is a _______________ cardinality and Sports car is participated in
relation __________and player is participated in relation __________.

4.4. Salesperson can sell many products. This is a _______________ cardinality and
salesperson is participated in relation __________ and product is participated in
relation __________.
Valid answers: 1:1, 1:N, M:N, Totally (Fully), partialy

Practice problem statements for ERD


1. Classroom has many benches. There should be at least one bench in each
classroom, bench is made up of different material and has length, width, height and
capacity. Classroom has number, floor and area.
2. Each employee is assigned a cubical and a computer system for work. Each cubical
has a id and designated extension number.
3.Library has many sections . Each section contains many books. Each book has
unique no., One or more authors, no. Of pages , publication. Each book must be
assigned a section. But there can be a section in which there are no books.
4. Consider a shopping cart. No. Of items will be added in a cart. Every item will
have a unique ID, price, and brand. Any item can be related to number of brands.
Every cart is having one user related. Cart payment details can also be maintained.
Cart can be empty if no items selected.
5. Number of buses are operating on number of routes. Every rout� has number given.
Source and destination information with details of stops will be maintained. Every
bus is having unique number. No. Of buses may be running on same route. There can
be some routes where no buses are still running but every bus is assigned a certain
route.
6. There are number of restaurants in any area. Every restaurant has unique name,
address, and rating. Each restaurant is having a special menu for a day. A menu
will include number of item names, price and ingredients. There can be a restaurant
for which menu is not defined. But menu must be related to one of the restaurants
7. In a company, employees' job can be given to one of his children after
retirement. So every employee with his children information will be stored. Every
employee information will consist of his AADHAR, name, address, job designation.
And contact number. Employee may have one or more children every child information
will be stored as name, age, date of birth, gender and qualification.

Potrebbero piacerti anche