-
Notifications
You must be signed in to change notification settings - Fork 0
Quick SQL lookup
select * from tag_post_map;
select distinct(tags) from tag_post_map;
select count(id) from tag_post_map where acceptedAnswerId is not Null group by tag;
select count(id) from tag_post_map where acceptedAnswerId is Null group by tag;
select distinct(id) from tag_post_map where acceptedAnswerId is not Null;
select distinct(id) from tag_post_map where acceptedAnswerId is Null;
###tag-wise count of questions select tag,count(*) as c from tag_post_map group by tag order by c desc;
select tag,count() as c from tag_post_map where acceptedAnswerId is not Null group by tag order by c desc; ### answered select tag,count() as c from tag_post_map where acceptedAnswerId is Null group by tag order by c desc; ### not answered
select tag,count(*) as c from tag_post_map where acceptedAnswerId is Null group by tag order by c desc;