sql server - mssql isnull don't work in outer apply -


outer apply  (  isnull(     (select top 1          sea.daily,                   sea.seasonid         season sea           sea.propertyid = prop.propertyid , fromdate < @fromdate ,  todate > @todate        ),     (select top 1 sea.daily,                     sea.seasonid                     season sea sea.propertyid = prop.propertyid)     )            ) pri 

write error incorrect syntax near ')'. incorrect syntax near keyword 'as'.

missing "select"??

outer apply  (  select isnull(     (select top 1          sea.daily,                   sea.seasonid         season sea           sea.propertyid = prop.propertyid , fromdate < @fromdate ,  todate > @todate        ),     (select top 1 sea.daily,                     sea.seasonid                     season sea sea.propertyid = prop.propertyid)     )            ) pri 

raj


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -