Reputation: 49404
I am trying to display all records with field_featured = 1 to start at the top of my listing ... and all the others to display at RAND()
So...
SELECT * FROM myTable
If (field_featured = 1 then ORDER BY field_featured) OTHERWISE (ORDER BY RAND() )
How can I do this?
Upvotes: 1
Views: 61