Question
Imagine that Jason has asked you to write some queries to help him make better use of his data. For each information request below, write
Imagine that Jason has asked you to write some queries to help him make better use of his data. For each information request below, write a single query that provides the answer set. When a task specifies which columns to show in the result, show only the columns listed and show them in the order specified. Save your queries and name them appropriately. There are two "Price" fields in this database. The Product table has a field named "currentPrice." This records the price at which each product is currently offered for sale. The Order Detail table has a field named "price." This field records the price actually paid for a product on a particular sale, which may differ for several reasons. A particular product may be discounted and therefore sell for a different price than currently listed. More importantly, the current price will likely change over time. As it does, we need to know what price was actually paid for the product when it was purchased.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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