final int1 qp
final int1 qp
Page 1 of 4
C1. Consider the following relations for Bank database system. CO2
Bank (Bid,name,cityname)
Bank_branch(branch_no,address, Bid)
Account(acct_no,type, balance)
Loan(Loan_no, type, amount, date)
Customer(cno,name, address,mobileno,gender)
Write SQL query for the following
a) To create table by considering appropriate constraints. (4 marks)
b) Delete the column gender from the customer table. (1 mark)
c)Insert any two records into the table Bank.(2 marks)
d)Modify the loan amount value as Rs.25,000 if loan_no equals 123. (2 mark)
e) Add the attribute DOB in customer table. (2 marks)
f) Create a View called Account_view from the Account table with the attributes acct_no
and balance . (1.5 marks)
(OR)
C2. Consider the following relation in College database management system. CO2
Page 2 of 4
Write SQL Queries for the following:
1) Display the user details in descending order according to the user_id. (2 marks)
2) Display the user name who likes “melody” playlist_songs(2 marks)
3) Find the average number of likes based on track_id. (2.5 marks)
4) Display the Artist Name based on their album_name( 2 marks)
5) Modify the user_emailid of the user whose ID is 1234. (2 marks)
6) Display the details of Song whose track_id is same as that of the artist_id “11”. (2
marks)
(OR)
C4. Consider the following Blood bank Management system. CO2
***********************************
Page 3 of 4
TEMPLATE FOR ASSESSING COURSE OUTCOMES
(To be filled by Question Setter)
Assessment Pattern
Remember Understand Apply Analyze Evaluate Create Total
10 15 25 - - - 50
Assessment Summary
Page 4 of 4