stack_exchange_test_query_671_4

0

Please login or register to vote for this query.

(click on this box to dismiss)

Psychology and Neuroscience Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

select distinct top 100 u.DisplayName, u.Id
from Users u
left join
(
  select u.DisplayName, u.Id
  from Users u join
  (
    select p.OwnerUserId
    from Posts p  
    where p.CreationDate between '2010-01-01' and '2010-12-31'
  ) t1 on t1.OwnerUserId = u.Id
) t2 on t2.Id = u.Id
and t2.Id is null
join
(
  select u.DisplayName, u.Id
  from Users u join
  (
    select p.OwnerUserId
    from Posts p  
    where p.CreationDate between '2015-01-01' and '2015-12-31'
  ) t1 on t1.OwnerUserId = u.Id
) t3 on t3.Id = u.Id

Enter Parameters

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