counts.CASE statement to determine the new id for each student:
id is odd and not the last seat, set the new id to id + 1.id is odd and the last seat, keep the id unchanged.id is even, set the new id to id - 1.id and the student name.id in ascending order.erDiagram
Seat {
int id PK
varchar student
}