-
-
Save jayd3e/1c255e8d559592af3c3f 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 count(distinct(posts.id)) from posts | |
left outer join comments on posts.id = comments.post_id | |
where comments.id is not null and posts.deleted is null and comments.deleted is null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment