erme Posted February 15, 2010 Share Posted February 15, 2010 How can I write something like this? SELECT * FROM TableName ORDER BY RAND($rand) AND FieldName1 DESC Quote Link to comment Share on other sites More sharing options...
trq Posted February 15, 2010 Share Posted February 15, 2010 SELECT * FROM TableName ORDER BY RAND($rand) FieldName1 DESC Quote Link to comment Share on other sites More sharing options...
erme Posted February 16, 2010 Author Share Posted February 16, 2010 Doesn't seem to work Quote Link to comment Share on other sites More sharing options...
erme Posted February 16, 2010 Author Share Posted February 16, 2010 Need the comma SELECT * FROM TableName ORDER BY RAND($rand), FieldName1 DESC Quote Link to comment Share on other sites More sharing options...
jay7981 Posted February 16, 2010 Share Posted February 16, 2010 SELECT * FROM table ORDER BY field ASC/DESC, field ASC/DESC, field ASC/DESC....... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.