Question
Specify relational algebra equations that would perform the given queries on the following schema. You may use intermediate relations to make your work clearer. Proper
Specify relational algebra equations that would perform the given queries on the following schema.
You may use intermediate relations to make your work clearer. Proper notation should
be used. (You can insert special characters with Character Viewer on Mac or Character Map on Windows).
1) Find the business name of all contractors who have worked at least 10 hours for a customer in the 95819 zip code.
2) Find the first and last names of all customers who have between 100 and 1000 rewards points.
3) Find the names of all paint colors that have not been used in a room.
4) Find the business name, discount, and phone number of all contractors who have worked at least 1 hour for customers with the last name of Valdez.
5) Find the first and last names of all customers who have used a paint color named Blushing Pink in a room named Bedroom 1
REWARDS CUSTOMER_PHONE rid points cust_id cust id phone CUSTOMER cust_idstreetcity statezip HIRE ROOM cust id bus_namehours name cust id CONTRACTOR PAINTED bus_name discount rm_name cfaid color id CONTRACTOR_PHONE PAINT_COLOR bus name phone mfa id color id nameStep 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