Postgresql – Is it possible to create ROW_NUMBER-column with repeating values?
I need to create an id-column: on every TRUE statement it should be a normal serial number, but on every FALSE statement the field value should contain the previous number in this column. In other words, every FALSE should repeat…