Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CROSS APPLY when no record
Message
 
 
À
03/06/2013 21:38:30
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01575547
Message ID:
01575550
Vues:
33
>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?

OUTER APPLY then. CROSS APPLY only works when there is a match.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform