ror many

0

Please login or register to vote for this query.

(click on this box to dismiss)

Emacs

Q&A for those using, extending or developing Emacs

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
             FROM Users u
        
             JOIN (
                    SELECT DISTINCT UserId
                    FROM Badges
                    WHERE LOWER(Name) IN ('ruby-on-rails-3', 'ruby-on-rails', 'ruby-on-rails-3.1', 'ruby-on-rails-3.2', 'ruby-on-rails-4', 'ruby-on-rails-5') AND
                          Class IN (1, 2, 3) AND
                          TagBased = 1
                  ) tag_badges
             ON tag_badges.UserId = u.Id
             
             WHERE LOWER(Location) LIKE '%las vegas%' OR
                            LOWER(Location) LIKE '%henderson%' OR
                            LOWER(Location) LIKE '%minneapolis%' OR
                            LOWER(Location) LIKE '%chicago%' OR
                            LOWER(Location) LIKE '%atlanta%' OR
                            LOWER(Location) LIKE '%charlotte%' OR
                            LOWER(Location) LIKE '%miami%' OR
                            LOWER(Location) LIKE '%boise%' OR
                            LOWER(Location) LIKE '%denver%' OR
                            LOWER(Location) LIKE '%salt lake city%' OR
                            LOWER(Location) LIKE '%richmond%' OR
                            LOWER(Location) LIKE '%salem%'

Enter Parameters

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