Link to home
Create AccountLog in
Avatar of patd1
patd1Flag for United States of America

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.
ASKER CERTIFIED SOLUTION
Avatar of lludden
lludden
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.