SELECT Hid, Hname, Bid, Bname,Reputation FROM (SELECT b.U...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

SELECT Hid, Hname, Bid, Bname,Reputation
FROM
(SELECT b.UserId AS Hid, COUNT(b.Name) AS Hname, Reputation
FROM Users u
JOIN Badges b ON u.Id = b.UserId
WHERE (AboutMe LIKE '%buymeacoffee.com%' OR AboutMe LIKE '%ko-fi.com%') 
AND (b.Name IN ('Enlightened', 'Generalist','Guru','Populist','Self-Learner', 'Teacher'))
GROUP BY b.UserId, u.Reputation) AS Q1,
(SELECT b.UserId AS Bid, COUNT(b.Name) AS Bname
FROM Users u
JOIN Badges b ON u.Id = b.UserId
WHERE (AboutMe LIKE '%buymeacoffee.com%' OR AboutMe LIKE '%ko-fi.com%') 
AND (b.Name IN ('Explainer', 'Refiner','Illuminator','Lifejacket','Lifeboat', 'Revival', 'Necromancer', 'Tenacious', 'Unsung Hero'))
GROUP BY b.UserId) AS Q2
WHERE Q1.Hid = Q2.Bid;

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results