Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inventory Parts Not Received Again
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01415094
Message ID:
01415111
Views:
52
>>select * from myTable MT where not exists (select 1 from myTable where LocationID is NOT NULL and BatchID = MT.BatchID)
>>
>>Or may be better to do a left join here - the above query may be not the most optimal.
>
>That worked perfect! Thanks.

You're welcome.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform