Question: Using the date _ hour table, write a query that returns the number of rows in date _ hour by hour of the day, as

Using the date_hour table, write a query that returns the number of rows in date_hour by hour of the day, as well as the sum of spend in that hour. Return three columns (hour, "Num Days", and "Total Sales") and order the results by hour. Round total sales to two decimal places (cents)
Using the date_hour table, write a query that returns the number of rows in date_hour by the hour of the day, as well as the sum of spend in that hour. Return three columns (hour, "Num Days", and "Total Sales") and order the results by hour. Using a HAVING cause, only return results that have fewer 2570 rows. Round total sales to two decial places (cent)
 Using the date_hour table, write a query that returns the number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!