Each user has a tab "TAGS", that basically gives an information in which area of programming the user participated in SO.
What would be query for getting such data, given user id?
Each user has a tab "TAGS", that basically gives an information in which area of programming the user participated in SO.
What would be query for getting such data, given user id?
I assume you want to know that from SEDE. In that case tags per user would tell you that.
-- userid: Your user id "Copy from the url"
select distinct t.tagname
from tags t
inner join posttags pt on pt.tagid = t.id
inner join posts q on pt.postid = q.id
left outer join posts a on a.parentid = q.id
where q.owneruserid = ##userid##
or a.owneruserid = ##userid##
Or a clever/ more efficient version from Deduplicator
-- userid: Your user id "Copy from the url"
select distinct t.tagname
from tags t
inner join posttags pt on pt.tagid = t.id
inner join posts p on pt.postid in (p.id, p.parentid)
where p.owneruserid = ##userid##