Last active
May 8, 2017 22:20
-
-
Save pedrotnascimento/0c815cb0e065e9cf64c3498dae69ff0c to your computer and use it in GitHub Desktop.
Coleção de códigos de SQL
This file contains hidden or 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
-- checking intregrity of foreign key restriction | |
select f.foreign_key | |
from foreignTable f left join primaryTable p | |
on p.primary_key = f.foreign_key | |
where p is null; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment