Click any sample question below to see instant SQL generation, data visualization, and AI insights
Show sales distribution across US regions
SELECT st.Region, st.State, COUNT(DISTINCT s.OrderID) as TotalOrders, SUM(s.TotalAmount) as TotalSales, AVG(s.TotalAmount) as AvgOrderValue, COUNT(DISTINCT s.CustomerKey) as UniqueCustomers FROM FactSales s JOIN DimStore st ON s.StoreKey = st.StoreKey WHERE s.OrderDate >= DATEADD(YEAR, -1, GETDATE()) GROUP BY st.Region, st.State ORDER BY TotalSales DESC;
Last 12 Months β’ US Regions
West Coast (California, Washington) leads with $23.8M combined sales. Top 3 states account for 52% of total revenue.