Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Consider the following relational schema: Salerep(sales_rep ID, name, address, commission, rate) Customer(Customber _number, name, address, balance, credit_limit, sales_rep_ID) Part(part number, part_description, on_hand, class, warehouse,
1. Consider the following relational schema: Salerep(sales_rep ID, name, address, commission, rate) Customer(Customber _number, name, address, balance, credit_limit, sales_rep_ID) Part(part number, part_description, on_hand, class, warehouse, price) Orders(order number, order_date, customer_number) Orderlilne(order number, part_number, number_order) Write SQL statements for the following queries: a) (10 pts.) Produce a list showing part_number, part_description, on_hand, and price sorted by part_description. b) (15 pts.) List customer's name followed by order_number, part_description, and number_order. c) (15 pts.) List names of customers who have ordered the most expensive item d) (15 pts.) List the names of the sale_reps who have sold the most number of part "123
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