Professional Documents
Culture Documents
Group “B”
Short Answer questions: [5 × 3 = 15]
1. What is Database Management System (DBMS)? How DBMS can hide low level details from
the users? Explain
2. Explain different types of outer join?
3. Define authorization graph? Write the SQL query to grant update privilege on name and age
attribute of ‘student’ relation to user ‘Hari’.
4. Explain Horizontal and vertical fragmentation in brief with correctness rules.
5. Write the DDL query for the following :
Table Name Attributes Domain Constraints
Group “C”
Comprehensive Questions: [3 × 5 = 15]
1. Consider a database with following relations:
employee (eName, street, city)
worksin (eName, cName, salary)
company (cName, location)
Now, write SQL statement to perform the following:
a. Give all employees of ZAB Bank a 10 percent salary raise.
b. Delete all employees who works in company ABC Pvt. Ltd.
c. Find name of the employee who works for PQR Pvt. Ltd.
d. Find the number of employee who works for BABA Pvt. Ltd.
e. Find the name of all employee who earns less than every employee of PQR Pvt.Ltd
2. The department store database system contains information about customers, items they order,
departments in the store, employees and suppliers of merchandise. For customers we record their
name, address, salary and orders they have placed. The orders are for certain items and should
include a description of the item, item no and quantity. Items are usually being supplied by more
than one supplier at different prices. The store needs to keep contact information about the
suppliers.
Identify the entity sets, attributes and relationship sets and construct E-R diagram for the system
3. Describe anomalies and its type in short. Explain 1NF, 2NF, 3NF with suitable example