I am trying to run a simple query but it is not returning any results and is showing "Executing Query" endlessly.
This is my code:
select *
from ALERTTRAN_01
where PARENT_ALERT_ID not in (select PARENT_ALERT_ID
from nonbulkclosealert)
But when I change the code to
select *
from ALERTTRAN_01
where PARENT_ALERT_ID in (select PARENT_ALERT_ID
from nonbulkclosealert)
Note the not in
to in
, then it is running fine.
Any help is appreciated.