Created
March 27, 2012 20:07
-
-
Save jdjkelly/2219805 to your computer and use it in GitHub Desktop.
Script to delete groups
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete from groups where group_id in ( | |
select group_id from groups | |
where group_id not in ( | |
select productgroup.groupid from groups | |
inner join productgroup ON groups.group_id = productgroup.groupid | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment