0

While using Order by for more than 1 column which column will get priority while sorting?

In case of order by last name, age means if the records are last name anderson age 55 and last name Bharat and age 16. How will they get sorted

1st Jun 2018, 1:23 PM
karthick shanmugavelu
1 ответ
+ 3
whichever you mention 1st order by last_name, age Anderson, 55 Bharat, 16 order by age, last_name Bharat, 16 Anderson, 55 or you could use desc on either to reverse the ordering
1st Jun 2018, 3:47 PM
Glennb85
Glennb85 - avatar