SQL - Advanced Window Functions
Which SQL query correctly computes a moving average of
revenue over the last 3 rows ordered by transaction_date?revenue over the last 3 rows ordered by transaction_date?ROWS BETWEEN 2 PRECEDING AND CURRENT ROW includes the current row and the two previous rows.transaction_date ensures the rows are processed in date order.ROWS BETWEEN 2 PRECEDING AND CURRENT ROW with ORDER BY transaction_date.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions