1select table_name, sum(table_rows) as sum
2from information_schema.tables
3where table_schema = '[DB NAME]'
4group by table_name
5order by sum desc;
1SELECT sum( case when `tags_Column` CONTAINS 'tag2' then 1 else 0 end ) as tag2,
2 sum( case when `tags_Column` CONTAINS 'tag3' then 1 else 0 end ) as tag3,
3 .....
4 sum( case when `tags_Column` CONTAINS 'tag256' then 1 else 0 end ) as tag256,
5 sum( case when `tags_Column` CONTAINS `tag2` OR
6 `tags_Column` CONTAINS 'tag3`
7 then 0 else 1 end ) as doesnt_contains_tags_2_3
8FROM `TableContainsTags`