Sample Question Paper Database Management
Sample Question Paper Database Management
Instructions:
(1) All questions are compulsory.
(2) Illustrate your answers with neat sketches wherever necessary.
(3) Figures to the right indicate full marks.
(4) Assume suitable data if necessary.
(5) Preferably, write the answers in sequential order.
1
Name : DB_SEQ
Starting Value : 1
Maximum Value : 10
Increment By: 2
d) Consider following schema
Employee (E_id, E_name, Salary, Department)
Write SQL commands for following statement.
i. Find Summation of salary for all employees.
ii. Display Minimum and Maximum Salary.
iii. Display all record in descending order of Employee name.
iv. Display employee name working in department “Quality”
2
Q.5) Attempt any TWO of the following. 12 Marks
a) Create table for following schema.
i. Student (Enroll_no, Roll_no, Name, Percentage);
ii. Worker(W_id, W_name, Joining_Date, Department)
iii. Book (Book_id, Book_name, Author, Price, ISBN)
b) Consider given Schema. Write SQL Command for following statement.
Product (P_id, Name, Quantity, Price);
Supplier(S_id, S_name, P_id, Contact_no)
Manufacturer(M_id, M_name, Owner, City)
i. Increase Price of all products by 20% having product id P-123.
ii. Change contact_no for S-123 supplier with new number as “9876543210”.
iii. Add following record for new manufacturer.
Id = 123, name = xyz , Owner = jack , city = Delhi
iv. Display records of products supplied by supplier S-125.
v. Eliminate Supplier with Supplier id S-126.
vi. Display all manufacturers whose name starts with ‘A’.
c) Write a trigger which invokes on deletion of record on Student table.
3
Scheme - I
Instructions:
(1) All questions are compulsory.
(2) Illustrate your answers with neat sketches wherever necessary.
(3) Figures to the right indicate full marks.
(4) Assume suitable data if necessary.
(5) Preferably, write the answers in sequential order.
Q.1 Attempt any FOUR. 08 Marks
a) Enlist different types of RDBMS software.
b) Differentiate between drop and truncate.
c) Describe Group by clause with example
d) Define DML. List different DML Command
e) Define view. Give its significance.
f) Describe Rename Command with its syntax.
Q.2 Attempt any THREE. 12 Marks
a) Write SQL Statement for following:
i. Create table Vehicle with attribute (V_id, Chassis_No, Type,
Number_Of_Wheels) use Chassis_No as primary key.
ii. Add one attribute to Vehicle Table as (Number_Of_Axle) .
b) Consider following Schema and perform specified join operations.
Emp(E_id, E_Name, D_id, Manager)
Department (D_id, D_name, Location)
i. Perform Inner join on above table.
ii. Perform Left Join on Department and Emp Table.
c) Consider schema Candidate (C_id, Seat_no, Name, Score, City) Write SQL
Command for following
i. Display Candidate who scored between 60 and 70 Marks.
ii. Display Candidate whose city is either Pune or Mumbai.
iii. Produce record of candidate who belongs to Nashik and scored more than 60
marks.
iv. Change the city of candidate C_10 from Pune to Mumbai.
d) Write syntax for following.
i. Create view for more than one table.
ii. Drop view
4
Scheme - I
Instructions:
(1) All questions are compulsory.
(2) Illustrate your answers with neat sketches wherever necessary.
(3) Figures to the right indicate full marks.
(4) Assume suitable data if necessary.
(5) Preferably, write the answers in sequential order.