patd1
asked on
sql join
I have a table Index that has BatchNo, DocSetType, DocCtrlNo with 100 records.
A subset of this data in in table History (500 records)
I want to know the DocCtrlNo from Index table that are not in History table. Can I do this with a join?
I know I can do this with sub query (Select DocCtrlNo from index where DocCtrlNo not in (Select DocStrlNo from History)
Thanks.
A subset of this data in in table History (500 records)
I want to know the DocCtrlNo from Index table that are not in History table. Can I do this with a join?
I know I can do this with sub query (Select DocCtrlNo from index where DocCtrlNo not in (Select DocStrlNo from History)
Thanks.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.