Look at the incomplete query below. What should you change, if you want to sort the results by baby_age?
SELECT
gender,
baby_age,
AVG(baby_height) OVER(PARTITION BY gender ORDER BY baby_age) AS avg_height
FROM babies;Look at the incomplete query below. What should you change, if you want to sort the results by baby_age?
SELECT
gender,
baby_age,
AVG(baby_height) OVER(PARTITION BY gender ORDER BY baby_age) AS avg_height
FROM babies;Create a free account to access the full topic