WITH lv_users AS ( SELECT DisplayName, Location, Id FROM ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Moderators

Q&A for community managers, administrators, and moderators

WITH
lv_users AS
(
SELECT DisplayName, Location, Id
FROM Users
WHERE LOWER(location) LIKE '%latvija%' OR LOWER(location) LIKE '%latvia%'
),
users_with_editor_badge AS
(
SELECT UserId 
FROM Badges 
WHERE LOWER(Name) LIKE '%editor%'
),
lv_users_with_editor_badge AS
(
  SELECT * 
  FROM lv_users 
  WHERE Id IN (SELECT * FROM users_with_editor_badge)
)
SELECT * FROM lv_users_with_editor_badge

Enter Parameters

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