Let\'s say we have two tables here , posts and comments, the relations is one to many, there has a field call comment_date in the comments table.
Now I am struggle t
SELECT * FROM posts WHERE post_id NOT IN ( SELECT comment_post FROM comments WHERE comment_date >= @deadline )
SELECT * FROM posts p WHERE NOT EXISTS( SELECT 1 FROM comments c WHERE c.comment_date >= 'deadline' AND p.post_id = c.post_id )