I have Following query
select a.id as \'as\',b.id as \'b\',a.student,b.student from seat a left join seat b on a.id+ case when a.id%2=0 then -1 else 1 end = b.id