0

I'm trying make app for users and there is 2 groups of users. Normal and Premium. I have list where are they all. But I want to order they by id desc and then premium users will be on top. So if I had the normal users id 1,4,5,6,7 and the premium users had id 2,3 they will be on top of the list. How can I achieve this with simple mysql select? Or any simple code.

SELECT * FROM table ORDER BY id DESC AND ORDER BY premium .. ? 
Dharman
  • 30,962
  • 25
  • 85
  • 135
Nol
  • 55
  • 2
  • 9

0 Answers0