To perform this activity, refer to the tables in the JustLee Book database. Just
ID: 3776068 • Letter: T
Question
Explanation / Answer
I consider two tables as Books and OderItems you can use following query to find your output.
SELECT b.Name, SUM(oi.Qty) as NumberOfBookSales
FROM
OrderItems as oi
LEFT JOIN Books as b
ON oi.isbn = b.isbn AND b.cost <= (retail – cost / .55)
GROUP BY b.title;
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.