I have a table as below, i want to get the OUT column value below the IN column and adding a new record.
create table Temp ( [name] varchar(10), [In] varchar(