Anton.Sandbox

0

Please login or register to vote for this query.

(click on this box to dismiss)

Portuguese Language

Q&A for linguists, teachers and learners wanting to discuss the finer points of the Portuguese language

-- Sandbox

;WITH UsersSample AS
(
  SELECT u.Id
  FROM Users u tablesample(.1 percent)
  WHERE u.UpVotes > 1
  )
SELECT u.Id as UserId,
  v.PostId,
  v.VoteTypeId
FROM Votes v
  RIGHT OUTER JOIN UsersSample u
    ON v.UserId = u.Id
-- WHERE
--   v.VoteTypeId > 1 AND v.VoteTypeId < 4

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results