Postgresql – Find price changes over time
I have a table with these columns: id, sku, price, date CREATE TABLE price_log ( id int NOT NULL PRIMARY KEY, sku text NOT NULL, date date NOT NULL, price real NOT NULL, CONSTRAINT date_sku UNIQUE (sku,date) ) I want…