Limit SQL Query Result |
7/24/2008 9:26:58 PM |
PHPRunner General questions | |
A
allan author
Hi, I would like to limit the query result to the first 10 so that I can make a top 10 graph. I have been using this SELECT
|
|
J
|
Jane 7/25/2008 |
Hi, create view `viewname` as SELECT UserID, Username, Status, Total FROM user WHERE Status ='Approved' ORDER BY `Total` DESC, Username LIMIT 0,10
|
A
|
allan author 7/25/2008 |
I got it working. Thank you |