Firmex

0

Please login or register to vote for this query.

(click on this box to dismiss)

Philosophy Meta

Q&A about the site for those interested in the study of the fundamental nature of knowledge, reality, and existence

SELECT u.Id AS [User Link],
                            CONCAT('https://stackoverflow.com/users/', u.Id) AS [Profile Link],
                            u.DisplayName,
                            u.Location,
                            u.WebsiteUrl,
                            u.AboutMe,
                            u.Views,
                            u.UpVotes,
                            u.DownVotes,
                            answers.AnswersPosted
             FROM Users u
        
             JOIN (
                    SELECT DISTINCT UserId
                    FROM Badges
                    WHERE LOWER(Name) IN ('.net', 'asp.net', 'asp.net-mvc', 'asp.net-web-api', 'c#-7.0', 'c#-6.0', 'c#-4.0', 'c#-2.0', 'c#-5.0', 'c#-3.0', 'asp.net-web-api-routing', 'asp.net-mvc-5', 'asp.net-mvc-3', 'asp.net-mvc-2', 'asp.net-mvc-4', 'asp.net-mvc-areas', 'asp.net-web-api2', 'asp.net-webpages', '.net-2.0', '.net-3.5', '.net-4.0', '.net-4.5', '.net-core') AND
                          Class IN (2) AND
                          TagBased = 1
                  ) tag_badges
             ON tag_badges.UserId = u.Id
             
             LEFT JOIN
             (
               SELECT OwnerUserId, COUNT(*) AS AnswersPosted
               FROM Posts
               JOIN PostTypes
               ON PostTypes.Id = Posts.PostTypeId
               WHERE PostTypes.Name = 'Answer'
               GROUP BY Posts.OwnerUserId
             ) answers
             ON answers.OwnerUserId = u.Id
             
             WHERE LOWER(Location) LIKE '%canada%'

Enter Parameters

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