I have a problem in a sql server query ... I have this table where I need to delete repeated values (those marked in blue) due to the last column ('hh''mm') and try the DISTINCT but even so he shows them to me
I do not know if I made myself understood, I hope you can help me ... this is the query
SELECT DISTINCT
n1,
n2, CONVERT (
CHAR (10),
maq_fechahora,
108
) AS maq_fechahora, CONVERT (
CHAR (5),
maq_fechahora,
108
) AS minu FROM
maq_equipos WHERE
maq_id = '020' AND CAST (maq_fechahora AS DATE) = '2018-10-17' AND maq_tip = 2 ORDER BY maq_fechahora ASC