SELECT * FROM table ORDER BY score DESC, lastname LIMIT 10
is it possible to change the above query so that it returns either a max of 10 rows if the individual scores permit -AND- have it not cut off any results if i have more than 10 rows with the same score?
for example, here are the un-limited results (row numbers added for convenience)
1. Angela Stinson - 41.2%
2. Your Mom - 35.3%
3. Megan Standridge - 35.3%
4. Becca To - 35.3%
5. your true love - 35.3%
6. Candice Yang - 35.3%
7. Bloop Blip - 29.4%
8. Christina Lee - 29.4%
9. the russian n - 29.4%
10. i love eminem - 23.5%
11. Heather Narciso - 23.5%
12. Aimee Pasley - 23.5%
13. Erika Stasi - 23.5%
14. Kermit the Frog - 23.5%
15. Jennifer Van - 23.5%
16. Manki Wong - 23.5%
17. Hobbes Davis - 17.6%
18. Boo Doll - 17.6%
19. Hey Eminem Is Mine - 17.6%
20. Bub Buddy - 11.8%
21. Jacki Le - 11.8%
22. Ruhee Subedar - 11.8%
in this set, row 10's score is shared by 7 other rows. in the query, i would like it to return
1. Angela Stinson - 41.2%
2. Your Mom - 35.3%
3. Megan Standridge - 35.3%
4. Becca To - 35.3%
5. your true love - 35.3%
6. Candice Yang - 35.3%
7. Bloop Blip - 29.4%
8. Christina Lee - 29.4%
9. the russian n - 29.4%
10. i love eminem - 23.5%
11. Heather Narciso - 23.5%
12. Aimee Pasley - 23.5%
13. Erika Stasi - 23.5%
14. Kermit the Frog - 23.5%
15. Jennifer Van - 23.5%
16. Manki Wong - 23.5%
instead of it leaving off the other [valid] results
1. Angela Stinson - 41.2%
2. Your Mom - 35.3%
3. Megan Standridge - 35.3%
4. Becca To - 35.3%
5. your true love - 35.3%
6. Candice Yang - 35.3%
7. Bloop Blip - 29.4%
8. Christina Lee - 29.4%
9. the russian n - 29.4%
10. i love eminem - 23.5%
as a LIMIT 10 statement will.
thanks