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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -