Skip to content

Commit 37523dc

Browse files
authored
chore: adding an analysis to dbt tests (#5276)
1 parent 2eb39a4 commit 37523dc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- Simple analysis: Top performing waiters by total revenue
2+
3+
SELECT
4+
waiter_id,
5+
SUM(revenue) AS total_revenue,
6+
COUNT(*) AS days_worked
7+
FROM {{ ref('waiter_revenue_by_day') }}
8+
GROUP BY waiter_id
9+
ORDER BY total_revenue DESC
10+
LIMIT 10

0 commit comments

Comments
 (0)