Find by tags with grouping

0

Please login or register to vote for this query.

(click on this box to dismiss)

Role-playing Games

Q&A for gamemasters and players of tabletop, paper-and-pencil role-playing games

SELECT users.Id [User Link], displayname, emailhash, reputation, location, STRING_AGG(tags, CHAR(44))
FROM users 
INNER JOIN posthistory ph 
	ON ph.userid = users.id 
INNER JOIN posts 
	ON posts.id = ph.postid 
WHERE tags LIKE '%##Skill1##%' AND tags LIKE '%##Skill2##%' 
AND LOWER(location) LIKE LOWER('%##Location##%')
GROUP BY users.Id, displayname, emailhash, reputation, location 
ORDER BY reputation DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results