Question

List all items sold by the company, sorted alphabetically by category and the alphabetically by item name. please give me an sql query for this question and i have tables as follows customer(customer_...

List all items sold by the company, sorted alphabetically by category and the alphabetically by item name. please give me an sql query for this question and i have tables as follows customer(customer_name,address,zipcode,customer_id,state),office_supplies(item_name,item_id,cost,category),orders(order_id,date,customer_id)

order_details(quantity,order_id,item_id)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

List all items sold by the company, sorted alphabetically by category and then alphabetically by item name.

Query:
Select o.item_name,od.order_id, o.category from office_supplies o
join order_details od on od.item_id = o.item_id
order by o.category,o.item_name;


Let me know in case if you have any questions. Thanks and All the best.

Add a comment
Know the answer?
Add Answer to:
List all items sold by the company, sorted alphabetically by category and the alphabetically by item name. please give me an sql query for this question and i have tables as follows customer(customer_...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT