Hello, I need to compare the records of a column in a single table. It is worth mentioning that the records do not follow an order
Columna1 type int
123
1213
13313
12
12
1213
1213
Something like that should be the query:
select (case when Columna1 = Columna1(registro_siguiente) then '0' else '1' end) as Resultado from tablaDatos