I have a table like this one below:
datatime in_out
---------------------
08:00 IN
08:30 OUT
09:30 OUT
10:00 IN
10:30 OUT
Is there any chance, after a SQL server query to get something like this:
IN OUT
---------------
08:00 08:30
NULL 09:30
10:00 10:30
I spent about 2 weeks to find a solution. I am a beginner. The single solution was with min and max but it did not help me.
INwith no matchingOUT, or justOUTwith no matchingIN?