I have sql statement:
Code:
SELECT count(id) FROM artists_tags GROUP BY tag ORDER BY count(id) DESC, tag ASC
I could also use simple sort option with...
SELECT count(id) FROM artists_tags GROUP BY tag ORDER BY count(id) DESC, tag ASC
CREATE TABLE `events` ( `id` int(11) NOT NULL auto_increment, `type` int(1) NOT NULL, `typeid` int(5) NOT NULL, `dt` datetime NOT NULL, `locationid` int(11) NOT NULL, `status` tinyint(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
#statistics/day/type:songs
#statistics/year/type:songs
Leave a comment: