Question
1) Does Lost Time always sell for the same price (hint: join the sale and book)? 2) A customer from which state purchased the most
1) Does Lost Time always sell for the same price (hint: join the sale and book)?
2) A customer from which state purchased the most copies of Grant Me Three Wishes (hint: join the sale, customer and book)
3) Which book has sold the most copies in a single state (hint: use GROUP BY)?
4) Are total sales the same when you 1) join sale, customer and book, or 2) join all the tables? Why is that?
5) In the state of Oklahoma (‘OK’), what book with more than one author has the highest sale quantity (hint: use subquery to get the book with more than one authors)?
sale id customer book id custid bookauthor author id firstname lastname address city bookid authorid bookid unitprice quantity date title publisher category price firstname lastname birthdate state zip
Step by Step Solution
3.49 Rating (142 Votes )
There are 3 Steps involved in it
Step: 1
Answer Explanation 1 NO Lost Time always Will not sell for the sa...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