What does the following query calculate? SELECT product, sales / SUM(sales) OVER () * 100 AS pct FROM sales_table

SQL Data Analyst Medium

SQL Data Analyst — Medium

What does the following query calculate? SELECT product, sales / SUM(sales) OVER () * 100 AS pct FROM sales_table

Ready to go further?

Related questions