cancel
Showing results for 
Search instead for 
Did you mean: 

Double Sort criteria in Query

kedalenechong
Participant
0 Kudos
204

Hi All

Is it possible to have dual auto sorting criteria in User Defined Query?  Example first sorting by date followed by Document Number?

 

 

Kedalene Chong

fbio_bilicki
Active Contributor

Hi

Yes, use Order by.

Exampe

SELECT 
*
FROM ORDR T0 
ORDER BY T0.[DocDate] DESC, T0.[CardCode]

fbio_bilicki_0-1721438565551.png

Rgs

Fabio

kedalenechong
Participant
0 Kudos
Thanks will try and let you know

Accepted Solutions (0)

Answers (0)