Created
May 24, 2019 16:22
-
-
Save davletyarov/bb3b8eb4351f23241d794175eb6f2b6f 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 (SELECT count(*) FROM category s WHERE s.parent_category_id = c.id) BETWEEN 1 AND 3; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment