-1

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?

1 Answer 1

5

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##
1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .