Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write queries using operations of relational algebra for the questions listed below. Make sure to combine operators together to create more advanced queries to retrieve
Write queries using operations of relational algebra for the questions listed below. Make sure to combine operators together to create more advanced queries to retrieve data. Please clearly mark your answers for each problem.
You may copy and paste the following relational algebra operators in your solution:
sigma pi rho xcap cup :
Use the Subscript option available in the menu when needed.
Given database:
CUSTOMER CUSTID PK CUSTLAST, CUSTFIRST, CUSTPHONE, CUSTEMAIL, CUSTADDRESS, CUSTCITY, CUSTZIP, CUSTSTATE
ORDERS ORDERNUMBER PK CUSTID FK PRODID FK ORDERDATE, ORDERTOTAL
PRODUCT PRODID PK PRODDESCRIPTION, PRODCATEGORY, PRODPRICE
Retrieve City and Email for the customer whose name is John Smith.
Retrieve Name and Address of all customers who live in Florida.
Retrieve Product Description and Price for the products in the Computer category that cost more than $
Retrieve Product Description and Price for the products in either the Computer or Game category.
Retrieve Name and Address of the customers who placed orders on Note: the CUSTOMER and ORDERS tables are linked through the CUSTID column.
Retrieve Product Description and Price for the products that were purchased on Note: PRODUCT and ORDERS tables are linked through the PRODID column.
Retrieve Name and Address of all customers who live in Florida, who purchased product TV
Write three more complex queries to retrieve data from these tables. Queries must include multiple conditions and incorporate at least one join, one rename, and one aggregate function operations. All queries must be different. Provide a clear explanation of what each query is intended to do
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