Postgresql – Checking two distinct lists with AND operation on same column
I have the following example data structure of customer that can be part of multiple groups using a junction table and data: CREATE TABLE customer ( id INT NOT NULL ); CREATE TABLE groups ( id INT NOT NULL );…