Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One of the other two INNER JOIN
Message
De
23/04/2015 10:57:02
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01619007
Message ID:
01619015
Vues:
27
>Try
>
>select Numero from Client where exists (select 1 from Invoice 
>where Invoice.Numero=Client.NoInvoice AND Invoice.SecondCondition=True)
>OR exists (select 1 from Inventory 
>where Inventory.Numero=Client.NoInventory AND Inventory.SecondCondition=True)
>
>This way either of the conditions will be true.

Yes, I believe this is what I posted in Message #1619009.

I, however, need to keep the LEFT JOIN as I need some fields in the result from those tables.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform