Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate field with the same conditions
Message
 
 
À
02/03/2011 15:23:48
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:
01502373
Message ID:
01502392
Vues:
35
>>Both suggestions are exactly the same (but I was quicker :))
>>If you need to get records with no orders, change INNER JOIN to LEFT JOIN.
>
>Yes, this is what I was trying since five minutes. But, the example here is just a small SQL. The real SQL is several times bigger and I had to find a way to make it work with the LEFT JOIN.
>
>Thanks

I'd use CTE to make it mainteinable (SQL Server syntax only).
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