I have the following QUERY:
select id_cc_ponto_saldo_vecto,
id_planta_re,
tbl_cc_ponto_saldo_vecto.re,
ponto_saldo_atual,
convert(varchar(10),vecto_ponto,121)
from tbl_cc_ponto_saldo_vecto INNER JOIN tbl_usuario aa ON aa.re = tbl_cc_ponto_saldo_vecto.re
where venceu = '2'
and id_planta_re in ('100','110')
and ponto_saldo_atual > 0
and aa.status = '1'
and (zerou is null or zerou = 'N')
Where the result looks like the line below:
4803 100 100363 801.00 NULL
8202 110 100363 40.00 NULL
The problem is that it repeats the "RE" (number in bold). What I would like was for you to display only one line, no matter what line you are going to show, as long as you show 1 result for each "RE"
Is it possible?
Thank you