Jump to content

[SOLVED] Order By Data


jaymc

Recommended Posts

Hmm that didn't appear to work. It just orders the data by DESC ignoring my defined order

 

Heres the query

 

SELECT `First Name`, `Mobile Phone`, `ID/Status` idstat FROM `example_innodb`
	GROUP BY `Mobile Phone`
	ORDER BY FIELD(`ID/Status`, 'Hot Prospect', 'Prospect', 'Be Back', 'Blow Out') DESC

 

 

Link to comment
https://forums.phpfreaks.com/topic/159746-solved-order-by-data/#findComment-842589
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.