SQL - Advanced Window Functions
How would you modify this query to exclude products with zero sales from the percent of total calculation?
SELECT product, amount, ROUND(amount * 100.0 / SUM(amount) OVER (), 2) AS pct_total FROM sales;
