timscronin
MIS
I usually use the not in clause in place of a left outer join and null to find records not in a table. I have table called table A which has all records. Table B needs to be populated with any new ones added to A. When I try to use a NOT IN sub select to determine this it returns no records. The fields which are the linking fields are both
varchar(6). Below is the NOT IN and the left outer join, any ideas why it doesn't work?
select * from a where otheridnumber
not in (select inmateid from b)
select * from a left outer join
b
on b.inmateid = a.otheridnumber
where b.inmateid is null
varchar(6). Below is the NOT IN and the left outer join, any ideas why it doesn't work?
select * from a where otheridnumber
not in (select inmateid from b)
select * from a left outer join
b
on b.inmateid = a.otheridnumber
where b.inmateid is null