I have a table sorted by a column value “weight.”
Every time the value in the column changes, I want to insert a new record before the record containing the new value along with some text. Possible?
|Column 1 | Column 2 | Column 3 | Column 4|
|id | weight | Product Info | —|
| 1| A | Product Text A | |
| 2| A | Product Text A| |
| 3| B | Product Text B| |
| | | | |
| | | | |
| | | | |
|Column 1 | Column 2 | Column 3 | Column 4|
|id | weight | Product Info | —|
| 1| A | Product Text A| |
| 2| A | Product Text A| |
| 3| A | Newly Inserted Text For Record Change | |
| 4| B | Product Text B| |