You are on page 1of 2

Short Answer Questions:

1. Differentiate between Database Management System and file-based system


2. Define instances and schemas of database?
3. What is meant by the term query language?

4. List out various DML Operations?


5. Explain commands with respect to SQL: (i) Rename (ii) Alter
6. Explain the terms super key and candidate key with an example.
7. What you meant by a Key?
8. What is meant by integrity constraint?
9. When can we use group by clause, explain?
10. What is relational calculus? What are its types?

Long Answer Questions:

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).

i) Display the Age of ‘male’ employees.


ii) Display all employees in Department named ‘Marketing’.
iii) Display the name of highest salary paid ‘female’ employee.
iv) which employee is oldest manger in company?
v) Display the name of department of the employee ‘SMITH’.
5.
a. What is NULL? What is its importance? How are these values handled in
relational
model?
b. Define the following terms and give examples
(i)cardinality (ii)unary relationships (iv)specialization
6. Write SQL statements for following:
Student (Enron, name, courseId, emailId, cellno)
Course (courseId, course_nm, duration)
i) Add a column city in student table.
ii) Find out list of students who have enrolled in “computer” course.
iii) List name of all courses with their duration.
iv) List name of all students start with „a‟.
V) List email Id and cell no of all mechanical engineering students.
7. Define View? Explain various operations performed on view?
8. What is a join? Discuss its types?
9. Describe in detail about Relational algebra and its types?
10.
a. List the data types supported by SQL.
b. Demonstrate the use of following keywords in SQL select statement.
i. DISTINCT ii. Having iii. Desc iv. As v. Index

You might also like