Postgres aggregator to find common value or null – Postgresql
I have two tables with a one-to-many relationship that looks something like this: CREATE TABLE products ( id UUID PRIMARY KEY, name TEXT ); CREATE TABLE product_variations ( id UUID PRIMARY KEY, product_id UUID REFERENCES products, attribute1 TEXT, attribute2 TEXT,…