How to use DISTINCT and ORDER BY in same SELECT statement?

PHOTO EMBED

Wed Nov 30 2022 13:37:20 GMT+0000 (Coordinated Universal Time)

Saved by @javicinhio #sql

SELECT DISTINCT Category, creationDate
FROM MonitoringJob
ORDER BY CreationDate DESC
content_copyCOPY

IMPORTANTE: EN EL DISTINCT DENTRO DEL "SELECT" HAY AGREGAR LA COLUMNA QUE SE VA A ORDENAR, EJEMPLO: [CREATIONDATE]

https://stackoverflow.com/questions/5391564/how-to-use-distinct-and-order-by-in-same-select-statement