Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One of the other two INNER JOIN
Message
From
23/04/2015 15:07:33
Walter Meester
HoogkarspelNetherlands
 
 
To
23/04/2015 13:46:49
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01619007
Message ID:
01619037
Views:
24
>>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.

Is this the full statement? or do you have additional conditions in the where clause? If so, make sure you put parenthesis around the two expressions:
WHERE (Invoice.Numero IS NOT NULL OR Inventory.Numero IS NOT NULL) AND ...whathever ...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform