Skip to content

Instantly share code, notes, and snippets.

@Teggy
Created July 23, 2008 08:46
Show Gist options
  • Save Teggy/1618 to your computer and use it in GitHub Desktop.
Save Teggy/1618 to your computer and use it in GitHub Desktop.
SELECT COUNT(*)
FROM R
WHERE NOT EXISTS (SELECT 1
FROM S
WHERE S.A = R.A)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment