Relational Algebra, TRC, DRC Questions
Relational Algebra, TRC, DRC Questions
queries in Relational algebra, Tuple relational calculus and Domain relational calculus.
Sailors S3
Reserves R2
Boats B1
Q9. Find the names of sailors who have reserved all boats.
Q10. Find the names of sailors who have reserved all boats called Interlake.
Give the answers for the following queries in Tuple relational calculus:
Q11. Find all the sailors with a rating above 7.
Q12. Find the names and ages of sailors with a rating above 7.
Q13. Find the sailor name, boat id, and reservation date for each reservation.
Q1. Find the names of sailors who have reserved boat 103.
Q2. Find the names of sailors who have reserved a red boat.
Q7. Find the names of sailors who have reserved at least two boats.
Q9. Find the names of sailors who have reserved all boats.
Q14. Find sailors who have reserved all red boats.
Give the answers for the following queries in Domain relational calculus:
Q11. Find all the sailors with a rating above 7.
Q1. Find the names of sailors who have reserved boat 103.
Q2. Find the names of sailors who have reserved a red boat.
Q7. Find the names of sailors who have reserved at least two boats.
Q9. Find the names of sailors who have reserved all boats.
Q14. Find sailors who have reserved all red boats.