select * from
 (select first 1 *
  from test_table3 t1
  order by t1.id1) dt
inner join
  test_table3 t2
     on t2.id2 is null

В общем случае, разумеется, надо включить
first 1 и во внешний запрос

Reply via email to