What was the average nightly rate by season? SELECT CASE…
What was the average nightly rate by season? SELECT CASE WHEN MONTH(checkin_date) IN (12,1,2) THEN ‘Winter’ WHEN MONTH(checkin_date) IN (6,7,8) THEN ‘Summer’ ELSE ‘Other’ END AS season, ROUND(AVG(price_per_night), 2) AS avg_priceFROM bookingsGROUP BY seasonORDER BY season DESC; Enter the values for each season. [a] Winter [b] Summer [c] Other
Read DetailsWhat was the average unit cost for each ingredient? For ex…
What was the average unit cost for each ingredient? For example, what was the average cost for each pound of bell peppers? Sort the results by ingredient in alphabetical order. Round to two decimal places. Enter the unit cost for the ingredients below. [a] avocado [b] basil
Read DetailsCategorize and count ingredients based on their unit cost….
Categorize and count ingredients based on their unit cost. Use CASE WHEN to accomplish this. Ingredients should be categorized into these groups: low cost — less than or equal to $1 medium cost — less than or equal to $2, but greater than $1 high cost — greater than $2 (Round to two decimal places.) Enter the counts for each category. [a] low cost [b] medium cost [c] high cost
Read Details