I am trying to run a query
select id, subid, brand from xyz
where code = 'A'
and (id,subid ) NOT IN
(select substr(z_id,1,3) , substr(z_id,4,3)
from ABC
where model = 'P')
My problem here is that the "NOT IN"
does not work as expected and returns all rows which meet
the condition...