MySQL how to select on multiple tables using Not Exist -
i have 3 tables. 1 table of deletion candidates. table created criteria, did not include couple of factors consideration (limitations of system). other 2 tables created considering "left out" factors. so, need run select query on these 3 tables come deletion list.
what started is:
select inactive.id inactive, renamed, returned not exists (inactive.id = remamed.id , inactive.id = returned.id)
but giving me error. can point out error here?
thank you
it's not entirely clear trying here.
i assume want list of rows inactive
table not exist in either renamed
table or inactive
table. right?
if can use query this:
select inactive.id inactive not exists (select null renamed renamed.id = inactive.id) , not exists (select null returned returned.id = inactive.id)
Comments
Post a Comment