This is probably old hat to y'all but I'm relatively new to Postgres. I need to flag records where a row is not greater than the previous (records are in sequential order). See the example below.
Col1 Seq Col3 Flag
A 1 35
B 2 36
C 3 32 1
D 4 39
E 5 40
No problems with finding the gaps in the sequencing but this one is stumping me and I couldn't find an existing forum thread(s) related to this. TIA
Col1 Seq Col3 Flag
A 1 35
B 2 36
C 3 32 1
D 4 39
E 5 40
No problems with finding the gaps in the sequencing but this one is stumping me and I couldn't find an existing forum thread(s) related to this. TIA