Gono Bishwabidyalay
Department of Computer Science & Engineering
Mid-term Exam, October-2024
Course Code: CSE-3501, Course Tittle: Database Management System
Marks: 10 Time: 30 minutes
1) Consider the relational database: 1 x 5 = 5
Teachers (TID, TName, TSalary, TAddress)Students (Roll, SName, SAddress, SContact, SFee)
Teaches (Roll, TID)
Write
the relational algebra for the following:
- Find the Roll of all students who are taught by teacher
"Raman".
- Delete all students who are from Biratnagar.
- Increase the fee of students who are from Kathmandu by
2%.
- Find the name of teacher who lives in Kathmandu and get
salary greater than Rs. 100000.
- Change the name of student to Sushila whose roll number
is 10.
2) Difference between Primary key and Foreign key. 5
0 Comments