Uploaded by Vibhav Gupta

Sample QP

advertisement
M Tech (programming Systems)
MID Semester Examination (Regular)
Course No.
: DDG5716
Course Title
: DATABASE DESIGN AND APPLICATIONS
Nature of Exam
: Closed Book
No. of Pages
=2
Weightage
: 30%
No. of Questions = 5
Duration
: 2 hours
Date of Exam
:
Note:
1. Please follow all the Instructions to Candidates given on the cover page of the answer book.
2. All parts of a question should be answered consecutively. Each answer should start from a
fresh page.
3. Assumptions made if any, should be stated clearly at the beginning of your answer.
4. Question 2 carries 10 marks, and question number 1, 3, 4, and 5 carries 5 marks each.
1. With an appropriate block diagram explain three schema architecture of DBMS and also
explain the concept of Data Independence.
5 Marks
2. Considering the following problem statement draw an ER diagram by explicitly
stating any assumptions made.
10 marks
The database has to maintain details of each Student and their enrollment details. For each
student Regno, Name, Address and Bdate details are maintained. The database maintains details
of each Course like Course_Number, Cname, and Semester. A Student can enroll for many
Courses and a Course can have many Students enrolled for it. A Course is offered by only one
Department and a department can offer many courses. The department details maintained in the
database are Dept_number, Dname, and a Location. A Course can adopt many Text_books and a
Text_book can be adopted by many courses. For each Text_book we maintain Book-ISBN,
Book-title, Publisher, Published_year and its Author details. A Course can be taught by many
Faculties and a Faculty can teach many courses. A Faculty heads a Department and each
department is having only one Faculty as HOD. The Faculty details that need to be maintained in
the Database are Faculty_ID, Fname, DOB, Qualifications and Phone_number.
3. Write the SQL queries for the following SALES Database:
SALESMAN (Salesman_id, Salesman_Name, City, Commission)
CUSTOMER (Customer_id, Cust_Name, cus_City, Grade, Salesman_id)
ORDERS (Ord_No, Purchase_Amt, Ord_Date, Customer_id, Salesman_id)
Write SQL queries to
a. Create ORDERS table by specifying appropriate Primary key and foreign keys.
6 Marks
b. Add phone_number to salesman table.
c. List Salesman_Name, Cust_Name, Cus_City, Amt, Ord_Date of Salesman from Delhi.
4. What is a key? Explain about the following keys along with example.
a. Primary Key
b. Secondary Key
c. Candidate Key
d. Alternate Key
e. Super Key
f. Composite Key
7 Marks
5. What is a data directory or data dictionary?
2 Marks
Download