Developpeur

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

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,
                            questions.QuestionsPosted
             FROM Users u
         
             LEFT JOIN
             (
               SELECT OwnerUserId, COUNT(*) AS QuestionsPosted
               FROM Posts
               JOIN PostTypes
               ON PostTypes.Id = Posts.PostTypeId
               WHERE PostTypes.Name = 'Question'
               GROUP BY Posts.OwnerUserId
             ) questions
             ON questions.OwnerUserId = u.Id
             
             WHERE LOWER(Location) LIKE '%paris%'

Enter Parameters

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