Remove Duplicate Occurance of Values in SQLServer Select Record : As per below image, there are record for OUT after OUT and IN after IN.
I want to remove duplicate occurrence of value in below record. I want record should be in continuous form i.e. In-Out-In-Out.[1]
[enter image description here][2]


  [1]: https://i.stack.imgur.com/O9kNp.jpg
  [2]: https://i.stack.imgur.com/PWntC.jpg