Is Inner SELF JOIN the right tool for this two-step filtering? – Postgresql
Some context, I am using postgres and I have a table that has items defined something like this: CREATE TYPE EventType AS ENUM ('published', 'unpublished'); CREATE TABLE items ( id integer NOT NULL, name varchar(40) NOT NULL, event EventType NOT…