tsql code snippet for optimized sales query

Solutions on MaxInterview for tsql code snippet for optimized sales query by the best coders in the world

showing results for - "tsql code snippet for optimized sales query"
Martín
09 Jan 2020
1SELECT
2    'Customer'[Company Name], 
3    'Date'[Date], 
4    'Product'[Color],
5    SUM ( 'Sales'[Quantity] )
6FROM 'Sales'
7    LEFT OUTER JOIN 'Customer' ON 'Sales'[CustomerKey] = 'Customer'[CustomerKey]
8    LEFT OUTER JOIN 'Date' ON 'Sales'[OrderDate] = 'Date'[Date]
9    LEFT OUTER JOIN 'Product' ON 'Sales'[ProductKey] = 'Product'[ProductKey];
10
similar questions