Created
October 7, 2015 20:39
-
-
Save blhickman/22d78c542e38244b1741 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT SLSM_NUM, SLSM_DESC, SalesGroup, 0 AS PYTDExt_GP, 0 AS Ext_GP, 0 AS GPGrowth, NULL AS GPTarget | |
FROM SALESMAN AS SALESMAN_3 | |
WHERE (SLSM_NUM IN ('103', '104', '105', '108', '110', '111', '113', '114', '121', '125', '136', '123', '124', '151', '176', '177')) AND (SLSM_NUM NOT IN | |
(SELECT DISTINCT OH3Y_2.SLSM_NUM | |
FROM OH3Y AS OH3Y_2 INNER JOIN | |
Time AS Time_2 ON OH3Y_2.INV_DATE = Time_2.PK_Date | |
WHERE (OH3Y_2.SLSM_NUM IN ('103', '104', '105', '108', '110', '111', '113', '114', '121', '125', '136', '123', '124', '151', '176', '177')) AND | |
(Time_2.FiscalYear = 'FY2016'))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment