I have a table having 3 columns (id, amount, time). The table is arranged in ascending order based on id. I want to remove all consecutive rows that have same value in the amount column except the first one.
eg:
id: 12,15,16,17,19,22
amount: 555,546,546,53,53,500
time:
Answer:
id:12,15,17,22 amount: 555,546,53,500 time:
The time column is same for consecutive rows whenever the consecutive rows have same values in the amount column. I searched on SO but could not find a similar question