database us-east-cluster-01
User Profile
code analyze_orders.sql
code monthly_revenue.sql
⌘ + Enter
Connected: 12ms
1 2 3 4 5 6 7 8
SELECT o.id AS order_id, o.created_at, o.total_amount, u.email AS customer_email FROM public.orders o JOIN public.users u ON o.customer_id = u.id WHERE o.total_amount > 1000.00 ORDER BY o.created_at DESC LIMIT 100;
timer 42ms
toc 100 rows
# vpn_key order_id created_at total_amount customer_email
1 ord_9f8a7b6c 2023-10-27 14:32:01 1,245.50 enterprise.admin@corp.io
2 ord_5e4d3c2b 2023-10-27 13:15:44 3,400.00 sarah.j@techstart.com
3 ord_1a2b3c4d 2023-10-27 11:05:22 1,050.75 billing@megacorp.net
4 ord_8h7g6f5e 2023-10-27 09:44:10 5,200.00 procurement@global.org
5 ord_2j3k4l5m 2023-10-26 22:10:05 1,120.25 investor.relations@fund.co
6 ord_9z8y7x6w 2023-10-26 18:30:00 2,100.00 ops@logistics.net