Skip to content

Instantly share code, notes, and snippets.

@krummja
Created April 12, 2022 15:36
Show Gist options
  • Save krummja/c08649c164d91bdfd088728b447bb304 to your computer and use it in GitHub Desktop.
Save krummja/c08649c164d91bdfd088728b447bb304 to your computer and use it in GitHub Desktop.
select cdomain
into temp duplicates_2
from accounts
group by cdomain
having count(*) > 1;
select *
from duplicates_2
full join accounts
on duplicates_2.cdomain = accounts.cdomain;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment