I am trying to create a query where I use ISNULL once with the first select statement and than use cross apply to create the column I really want, however I am getting a error message of 102 from SQL Server 2014. It says I am using the incorrect syntax. SELECT ISNULL(dbo.merica.Country,dbo.current_year.[Mega Region]) AS TESTFROM dbo.current_year CROSS APPLY (ISNULL(dbo.region_scorecard.[GAM Customer for Scorecard], TEST) AS [Regions/GAM]) LEFT OUTER JOIN dbo.merica ON dbo.current_year.[Mega Region] = dbo.merica.Country Thanks for your help.
↧