我想在下面的查询中不使用 IN 运算符编写:
select q_event_seq, rownum.....
from notify_request
where q_event_seq in (
select q_event_seq
FROM (
SELECT q_event_seq, DENSE_RANK() over (order by q_start, contact_gid) digest_rank
FROM NOTIFY_REQUEST
WHERE q_state = 'QUEUED'
order by digest_rank
)
where digest_rank <= 10
)
ORDER BY q_start, contact_gid ;