What's the best way to select records from a parent file that have no corresponding children in another file? I'm trying something like this but it's VERY slow.
Select Account, Company
From Customer
Where (Company + Convert(Seq_No,SQL_Char))
Not in (Select Distinct Company +
Convert (Seq_No,SQL_Char)
From Labels)
Customer is the parent, Labels is the child and they are related on Customer + Seq_No.
Thanking all in advance.
Paul
Select Account, Company
From Customer
Where (Company + Convert(Seq_No,SQL_Char))
Not in (Select Distinct Company +
Convert (Seq_No,SQL_Char)
From Labels)
Customer is the parent, Labels is the child and they are related on Customer + Seq_No.
Thanking all in advance.
Paul