Need a query help. I have a table where data is represented like this
userid TransactionTime FunctionKey
1018 2011-07-27 09:14:38.000 0
1018 2011-07-27 09:17:11.000 99
1018 2011-07-27 09:38:22.000 0
1018 2011-07-27 10:34:50.000 99
I need a query which will return a dataset like this:
userid Intime Outtime
1018 2011-07-27 09:14:38.000 2011-07-27 09:17:11.000
1018 2011-07-27 09:38:22.000 2011-07-27 10:34:50.000
Please Help..
Result: