0
I have the following select:
SELECT DISTINCT CD_CLIENTE, CD_CONTRATO, CD_AGRUPADOR FROM TBP_IMPORTAR_OS_RESIDUO WHERE CD_USUARIO = 0
But I wish when the field CD_AGRUPADOR
were the same, bring only 1 record. I can not take the distinct
because in some cases I will get results with different grouper values. For example I could have another record with values
83 - 327 - 0.
And what data from the CD_CLIENTE and CD_CONTRATO fields you would like them to be displayed for such CD_AGRUPADOR value?
– anonimo