Hi, All - We don't have IT support for GP and I'm trying to practice write a practice sql query based on something wrote with Excel Report Builder but it isn't working. My error is "Incorrect syntax near 'DYCUN'. Can anyone spot my error? Thanks for any help!
select GL00201.BUDGETID ,GL00201.ACTNUMBR_2 AS 'CC' ,GL00201.ACTNUMBR_3 AS 'ACCT' ,GL00201.ACTNUMBR_4 AS 'PROD' ,GL00201.PERIODID AS 'MONTH' ,GL00201.BUDGETAMT ,GL00201.ACTINDX ,GL00201.YEAR1 ,GL00100.ACTINDX ,GL00100.ACTDESCR ,GL00102.ACCATNUM FROM DYCUN.dbo.GL00201 INNER JOIN GL00100 on GL00201.ACTINDX = GL00100.ACTINDX DYCUN.dbo.GL00100 INNER JOIN GL00102 on GL00100.ACCATNUM = GL00102.ACCATNUM
where GL00201.YEAR1 >= 2012 and GL00201.BUDGETID IN ('2013BUD' '2014BUD' '2015BUD')
*This post is locked for comments