This file contains 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
3. total posts with at least one comment: | |
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; |