Professional Documents
Culture Documents
1.
a. Draw and explain the detailed system architecture of DBMS.
b. What are the advantages of DBMS?
c. Describe the concept of client/server model.
2. Consider the following relations:
Hotel {hotelNo, name, address}
Room {roomNo, hotelNo, type, price}
Booking {hotelNo, guestNo, dateFrom, dateTo, roomNo}
Guest {guestNo, name, address}
Write the SQL statements for the following:
a) List the names and addresses of all guests in Chandigarh, alphabetically ordered by
name.
b) List all family rooms with a price below Rs.400 per night, in ascending order of
price.
c) How many Hotels are there?
d) Find the room number of the guest whose address is “DELHI”
3.
a. What is aggregation? Explain with example?
b. Explain Aggregate functions with example.
4. Write SQL Queries for following set of tables:
EMPLOYEE (EmpNo, Name, DoB, Address, Gender, Salary, DNumber)
DEPARTMENT (DNumber, Dname, ManagerEmpNo, MnagerStartDate).