Re: Select rows when all all ids of its children records matches

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Arup Rakshit <ar(at)zeit(dot)io>
Cc: Ron <ronljohnsonjr(at)gmail(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Select rows when all all ids of its children records matches
Date: 2018-09-12 15:43:03
Message-ID: CAKFQuwZN-Lk3ErCACMdQZYDiiCto0NkrgTKZNKshkgxN-iSd=A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday, September 12, 2018, Arup Rakshit <ar(at)zeit(dot)io> wrote:

> IN is OR, I want the AND logic. Select posts which has tag 1, 2 and 3 (
> tag ids )
>

Build arrays and then use the “contains” operator.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Arup Rakshit 2018-09-12 15:44:27 Re: Select rows when all all ids of its children records matches
Previous Message Arup Rakshit 2018-09-12 15:30:46 Re: Select rows when all all ids of its children records matches