How come in my code when i use @”select Score from tblMed order by Score desc limit 10″ everything works fine, but when I change “desc” to “asc” the scores don’t show up???
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because:
…means that the lowest values will be at the top of the list – adding
LIMIT 10to the query will return the first 10 records with the lowest scores, so I imagine you have entries with score values of zero and/or null.