SQL - Advanced Window Functions
Which of the following SQL queries correctly calculates the percent of total sales per product using window functions?
SUM(sales) OVER () to get total sales across all rows, then divides each sales value by this total.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions