Skip to content

Instantly share code, notes, and snippets.

@ronnieoverby
Created April 18, 2012 02:04
Show Gist options
  • Save ronnieoverby/2410560 to your computer and use it in GitHub Desktop.
Save ronnieoverby/2410560 to your computer and use it in GitHub Desktop.
select * from customers c
where c.DateJoined BETWEEN @a AND @b
union
select c.* from customers c
join invites i on i.CustomerId = c.Id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment