All User Tag Ranks by Location


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow Meta en español

Preguntas y respuestas sobre el sitio para programadores y profesionales de la informática

    value , 
    p.OwnerUserId AS [User Link]
FROM Users u
JOIN Posts p ON p.OwnerUserId = u.Id
INNER JOIN Posts q on = p.parentid
CROSS APPLY STRING_SPLIT(REPLACE(REPLACE(REPLACE(q.tags, '><', ','), '<', ''), '>', ''), ',')
    LOWER(u.Location) LIKE LOWER('%##CityName##%')
    AND p.posttypeid = 2 -- just answers
    AND p.OwnerUserId = ##UserId## 
GROUP BY value , p.OwnerUserId
ORDER BY sum(p.score) DESC

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results