From 92bf63339baedfaaae391f588166bc500d6e33a2 Mon Sep 17 00:00:00 2001 From: cmacias12 <143342871+cmacias12@users.noreply.github.com> Date: Thu, 31 Aug 2023 12:47:52 -0500 Subject: [PATCH] Create Top 3 Revenue by state Question 2 --- Top 3 Revenue by state | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Top 3 Revenue by state diff --git a/Top 3 Revenue by state b/Top 3 Revenue by state new file mode 100644 index 0000000..dba1469 --- /dev/null +++ b/Top 3 Revenue by state @@ -0,0 +1,5 @@ +SELECT state, SUM(revenue) AS total_revenue +FROM revenue +GROUP BY state +ORDER BY total_revenue DESC +LIMIT 3;