order keywords by frequency in PHP mySql

Posted by Gusepo on Stack Overflow See other posts from Stack Overflow or by Gusepo
Published on 2010-04-15T16:23:55Z Indexed on 2010/04/15 16:33 UTC
Read the original article Hit count: 207

Filed under:
|
|
|

Hello,

I've got a database with video ids and N keywords for each video. I made a table with 1 video ID and 1 keyword ID in each row.

What's the easiest way to order keywords by frequency? I mean to extract the number of times a keyword is used and order them.

Is it possible to do that with sql or do I need to use php arrays?

Thanks

© Stack Overflow or respective owner

Related posts about keywords

Related posts about sql