Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One of the other two INNER JOIN
Message
De
23/04/2015 15:04:14
Walter Meester
HoogkarspelPays-Bas
 
 
À
23/04/2015 13:46:49
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:
01619036
Vues:
28
>>Yes, very simple...
>>
>>
>>SELECT Client.Numero
>> FROM Client
>> LEFT JOIN Invoice ON Invoice.Numero=Client.NoInvoice AND Invoice.SecondCondition=True
>> LEFT JOIN Inventory ON Inventory.Numero=Client.NoInventory AND Inventory.SecondCondition=True
>>WHERE Invoice.Numero IS NOT NULL OR Inventory.Numero IS NOT NULL
>>
>
>This does not work.

Are you sure? I know that such queries can surprise me, but I cannot see what can go wrong here.
If you look at the output do you see repeats of the invoice table or inventory table?

I wonder whether the problem is in the description of what you are expecting.

Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform