Answers for "TSQL Code Snippet For Optimized Sales Query"

SQL
0

TSQL Code Snippet For Optimized Sales Query

SELECT
    'Customer'[Company Name], 
    'Date'[Date], 
    'Product'[Color],
    SUM ( 'Sales'[Quantity] )
FROM 'Sales'
    LEFT OUTER JOIN 'Customer' ON 'Sales'[CustomerKey] = 'Customer'[CustomerKey]
    LEFT OUTER JOIN 'Date' ON 'Sales'[OrderDate] = 'Date'[Date]
    LEFT OUTER JOIN 'Product' ON 'Sales'[ProductKey] = 'Product'[ProductKey];
Posted by: Guest on July-06-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language