Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

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

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

More Books

Students also viewed these Databases questions

Question

What is the formula to calculate the mth Fibonacci number?

Answered: 1 week ago

Question

Evaluate employees readiness for training. page 275

Answered: 1 week ago