My select works and returns the data I need, but it is returning more than 6000 times the same result.
How do I return the result in only 01 line.
NOTE: There is only one result for this code sq_transação
, there is no possibility of duplication or other records with the same code, what the query is doing is to show many times the same result.
Select T.Cd_Fase, F.ds_Fase, T.Nu_Msisdn, p.cd_tecnologia,T.Nu_Iccid Simcard, Sq_Transacao, To_char(Dh_Entrada, 'DD/MM/YY, HH24:MI:SS') Data, T.Cd_Erro_Api
from transacao t, Fase_Processamento F, plano p
where F.Cd_Fase = T.Cd_Fase --and Nu/Msisdn In ('');
and sq_transacao = '12590061';