I have the following select:
SELECT a.nome, a.cidade, a.telefone, a.dt_criado
FROM cadastro AS a
GROUP BY a.nome, a.cidade, a.telefone, a.dt_criado
HAVING COUNT(*) > 0
ORDER BY a.dt_criado
DESC
a.dt_create is a varchar, but does not sort correctly.
Select result:
02/05/2018 - 15:38:21 02/05/2018 - 15:39:48 02/02/2018 - 15:40:05 02/05/2018 - 15:44:19 02/05/2018 - 17:41:42 03/05/2018 - 08:53:06 03/05/2018 - 08:53:06 03/05/2018 - 08:53:06 03/05/2018 - 08:53:06 03/05/2018 - 08:53:06 03/05/2018 - 08:53:06 03/05/2018 - 14:11:29 03/05/2018 - 14:12:04 03/05/2018 - 14:13:06 03/05/2018 - 14:48:59 04/20/2018 - 09:35:59 20/04/2018 - 12:38:13 04/20/2018 - 16:49:15 04/20/2018 - 16:49:31 20/04/2018 - 16:55:23 04/20/2018 - 16:55:23 04/20/2018 - 16:55:23 -