LanceT Posted January 13, 2007 Share Posted January 13, 2007 Lets say I have a row called "hello" and a row for "id" which is automatically incremented. Hello can be inputted with several different values (for example: hi, you, low)Is there an easy way to print out all the information for the highest valued 5 ids that have the value of "hi" in my row "hello" ? Quote Link to comment Share on other sites More sharing options...
Barand Posted January 13, 2007 Share Posted January 13, 2007 SELECT * FROM tablenameWHERE hello = 'hi'ORDER BY id DESCLIMIT 5 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.