Question: Please write a SQL code. . Create a grouped report summarizing data in the PurchaseHistory table by ProductNumber. The report should provide the last date
Please write a SQL code. . Create a grouped report summarizing data in the PurchaseHistory table by ProductNumber. The report should provide the last date (most recent) that a product was purchased, a count of the number of times a product was purchased, the maximum price, the minimum price, and the difference between the maximum and minimum prices. There should be one row in the result table for each product in the PurchaseHistory table
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
