| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|sort by numrows ?|
is there any way to sort mysql results by number of rows example
i have two tables
now both table have the same data in title
now i want to do is searching the table one with the title ex1
with like %ex%
the result should show the both ex1 and ex2
and i want to sort them with the numrows i get from table2.
DESC, so the ex1 should be 1st and ex2 2nd any idea ?
I believe you should be able to GROUP BY title and ORDER BY a COUNT in DESC order
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved