Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you solve g,h and i parts. Please give answers in relational algebra with symbols. Parts(pno, pname, qoh, price, qlevel) Customers(cno, cname, street, zip, phone)

image text in transcribed

image text in transcribed

Can you solve g,h and i parts. Please give answers in relational algebra with symbols.

Parts(pno, pname, qoh, price, qlevel) Customers(cno, cname, street, zip, phone) Employees(eno, ename, zip, hidate) Zip codes(zip, city) Orders(ono, cno, eno, received, shipped) Odetails(ono, pno, qty) Che attribute names are self-explanatory: qoh stands for quantity on hand. Specify the following ueries in Relational Algebra. a) Retrieve the numbers and names of parts that cost more than $50.00. b) Retrieve the names and cities of employees who have taken orders for parts costing less than $100.00. c) Retrieve the pairs of customer numbers of customers who live in the same ZIP Code. d) Retrieve the names and phone numbers of customers who have ordered parts from employees living in New Orleans. e) Retrieve the numbers and names of customers who have ordered parts costing more than $50.00 f) Retrieve the numbers and names of customers who have not placed an order. g) Retrieve the numbers and names of customers who placed at most one order. h) Retrieve the names of customers who placed maximum number of orders for Screwdriver" (pname). i) Retrieve the names of customers who placed maximum total amount of orders (quantity) for "Screwdriver" (pname). Parts(pno, pname, qoh, price, qlevel) Customers(cno, cname, street, zip, phone) Employees(eno, ename, zip, hidate) Zip codes(zip, city) Orders(ono, cno, eno, received, shipped) Odetails(ono, pno, qty) Che attribute names are self-explanatory: qoh stands for quantity on hand. Specify the following ueries in Relational Algebra. a) Retrieve the numbers and names of parts that cost more than $50.00. b) Retrieve the names and cities of employees who have taken orders for parts costing less than $100.00. c) Retrieve the pairs of customer numbers of customers who live in the same ZIP Code. d) Retrieve the names and phone numbers of customers who have ordered parts from employees living in New Orleans. e) Retrieve the numbers and names of customers who have ordered parts costing more than $50.00 f) Retrieve the numbers and names of customers who have not placed an order. g) Retrieve the numbers and names of customers who placed at most one order. h) Retrieve the names of customers who placed maximum number of orders for Screwdriver" (pname). i) Retrieve the names of customers who placed maximum total amount of orders (quantity) for "Screwdriver" (pname)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Cybersecurity In Finance

Authors: Sylvain Bouyon, Simon Krause

1st Edition

1786612178, 9781786612175

Students also viewed these Databases questions