Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 356 Bytes

File metadata and controls

11 lines (11 loc) · 356 Bytes

SELECT "posts".* FROM "posts" WHERE "posts"."id" IN (SELECT post_id FROM "posts" INNER JOIN "comments" ON "comments"."post_id" = "posts"."id" WHERE "comments"."title" = 'foo') AND "posts"."id" IN (SELECT post_id FROM "posts" INNER JOIN "comments" ON "comments"."post_id" = "posts"."id" WHERE "comments"."title" = 'bar')