Created
May 24, 2019 16:23
-
-
Save davletyarov/0c15b2921a1eab2f5e2af0e393300618 to your computer and use it in GitHub Desktop.
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
SELECT * | |
FROM category c | |
WHERE NOT EXISTS(SELECT * FROM category s WHERE s.parent_category_id = c.id); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment