Olá pessoal,
Tenho a seguinte query:
select * from maximo.wochange where wonum in (
select recordkey from maximo.relatedrecord rr where rr.relatedrecclass = 'PROBLEMA' and rr.class = 'MUDANÇA'
and exists (select 1 from maximo.problem p where p.ticketid = rr.relatedreckey and p.status not in ('CANCELADO', 'FECHADO', 'SOLUC')))
and status not in ('ENCERRADA', 'CANCEL', 'SEMSUCESSO', 'FALHA', 'SUCESSOPARCIAL', 'CONCL', 'FECHAR' )
and reportdate between '2010-08-01 00:00:00' and '2013-01-31 00:00:00';
Preciso retornar algumas informações que estão dentro dessa subsubquery e mostrar lá no “SELECT * FROM…”:
Alguém sabe como eu faço isso?
Desde já agradeço!