Hi guys I would be really grateful if somebody could help me as I am kinda stuck on a sql issue, I am trying to select based on having a good rating (which is a category) so all I am looking for is to select based on a rating of 4 or above on a scale of 1-5 "SELECT * FROM news WHERE 'rating' >=4 ASC LIMIT 10" which isnt working plus will this take into account decimals such as a rating of 4.5? I am assuming I am doing it wrong as I am fairly new to SQL. Any help would be much appreciated as cant find anything on the web.
Decimals being taken into account will depend on the data type used for the "rating" column. Try this SELECT * FROM news WHERE rating >= 4 ORDER BY rating DESC LIMIT 10 Code (markup): If it doesn't work, post the results it gives you, followed by the results you're expecting.