Find records that do not have related records in SQL -


I have 2 tables (order, order items) that are based on column order ID. I need to find all the orders that do not have any order.

meets the table, then selects without any order items. Using `IN 'is considered to be more efficient.

Select from the order * Left Out Exclude Sequence Items I at I.OrderId = O.Id where I.Id is empty

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -