Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CROSS APPLY when no record
Message
 
 
To
03/06/2013 21:38:30
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01575547
Message ID:
01575548
Views:
53
This message has been marked as the solution to the initial question of the thread.
>Earlier on today, I applied a CROSS APPLY syntax on a SQL command. That one is always finding a record in the related table. Tonight, I need to add another syntax like that where there will not be necessarily a record found. In such a situation, will that result be similar to a LEFT JOIN or a INNER JOIN? In other words, if that part of the SQL command does not return any record, will the main part of the SQL command return 0 record or will return as per the master table, similar to a LEFT JOIN?

In that respect CROSS APPLY is similar to INNER JOIN, OUTER APPLY - to LEFT OUTER JOIN. Pick the one that works for you
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform