select * from table where rating = "1" order by Hits_Sent
Why would you want to order by rating first, if you are only going to return where rating equals 1? Maybe you need to explain more on what you are looking to do.
Selfpleasure.com for sale on auction. Closes on Tuesday March 11th at 9pm PST!!!!
Dirty enough to be good, but clean enough for everyone!
------------------------------------------------------------------
Moral Police - First graduating class coming soon! - Forcing our values across the internet
Selfpleasure.com for sale on auction. Closes on Tuesday March 11th at 9pm PST!!!!
Dirty enough to be good, but clean enough for everyone!
------------------------------------------------------------------
Moral Police - First graduating class coming soon! - Forcing our values across the internet
Originally posted by archael Rating can be anywhere from 1 to 10.
For every result that has a Rating over 1, I want them to be ordered by Rating. The rest are Rating='1' and they have to be ordered by Hits_Sent.
So do you want rating = 10 to be returned first, then 9, etc..?
Or start at 2 and work up to 10...and then return rating = 1?
Selfpleasure.com for sale on auction. Closes on Tuesday March 11th at 9pm PST!!!!
Dirty enough to be good, but clean enough for everyone!
------------------------------------------------------------------
Moral Police - First graduating class coming soon! - Forcing our values across the internet
This will first order it by Ratings Descending 10 to 1 and then within those ratings it will order it by Hits_Sent
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
I dont mind helping out with a random question here and there, but perhaps you would be better off asking programming and database questions at a different forum.
They are, after all, non-porn-specific and you might get more help there.
Comment