Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Cross Applied

$
0
0
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.

Viewing all articles
Browse latest Browse all 3145

Trending Articles