create a non-unique ID column, where a new ID is created every time a numeric sequence resets – Postgresql
I have the following table: product price date banana 90 2022-01-01 banana 90 2022-01-02 banana 90 2022-01-03 banana 95 2022-01-04 banana 90 2022-01-05 banana 90 2022-01-06 I need to add a non-unique ID column to the table. Every time the…