Question

21. Your boss wants to know the total quantity of Boston Crab Meat that has ever...

21. Your boss wants to know the total quantity of Boston Crab Meat that has ever been ordered. [Hint: You will have to join the OrderDetails and Products tables. Your WHERE clause should contain the criterion ProductName = "Boston Crab Meat", and you will have to use the SUM function in your SELECT clause.] SQL

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

Query:


SELECT SUM(quantity) FROM OrderDetails O INNER join Products p on p.ProductID = O.ProductID WHERE P.ProductName = "Boston Crab Meat"

Joining both tables on ProductId and in where clause we need to filter records only for Boston Crab Meat

Note : If you like my answer please rate and help me it is very Imp for me

Add a comment
Know the answer?
Add Answer to:
21. Your boss wants to know the total quantity of Boston Crab Meat that has ever...
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
ADVERTISEMENT