Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use both Relational Algebra (ALG) and Tuple Relational Calculus (TRC) to express the following queries based on the given Sailer-Boat database created in Assignment 1.
Use both Relational Algebra (ALG) and Tuple Relational Calculus (TRC) to express the following queries based on the given Sailer-Boat database created in Assignment 1. Submit your ALG and TRC query expressions for these queries as well as the final query results. Each ALG and TRC query is 3 marks and the result is 2 marks 1 Reservation S1 B3 3-Feb-17 S1 B44-Feb-18 S2 B1 5-Mar-16 S2 B2 6-Mar-17 S4Lastname 20 S3 B1 8-May-17 7 S4 B1 10-Sep-17 B4 SplendorYellow 1. Get name of boat that "Lastname" reserves 2. Get sailer names for sailers who reserve Paradise 3. Get sailer names for sailers who do not reserve any boat 4. Get all pairs of sailer names such that the sailers concerned reserve the same boats 5. Get sailer names for sailers who reserve all boats 6. Get sailer names for sailers who reserve all boats except Splendor 7. Get sailer names for sailers who reserve all boats that Lastname reserves 8. Get sailer names for sailers who reserve only the boats that Lastname reserves 9. Get sailer names and the number of boats they reserve 10. Get sailer names for sailers who reserve more than two boats 0 2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started