G
Guest
I have a log file that records users logging in and out of an application.
Occassionally, the application crashes and I don't get a logout entry in the
log file.
I want to write a query that will show me all of the logins, with their
associated logouts, and where there is no associated logout, then I want to
retrieve a null.
My data looks similiar to:
userid event event_time
aaaaa Log in 2/27/06 15:05:30
bbbbb Log in 2/27/06 15:06:25
bbbbb Log out 2/27/06 16:18:03
aaaaa Log in 2/28/06 09:00:00
aaaaa Log out 2/28/06 12:28:00
What I would like to get back from my query is:
userid Log in Log out
aaaa 2/27/06 15:05:30
bbbb 2/27/06 15:06:25 2/27/06 16:18:03
aaaa 2/28.06 09:00:00 2/28/06 12:28:00
Thanks for your help
Occassionally, the application crashes and I don't get a logout entry in the
log file.
I want to write a query that will show me all of the logins, with their
associated logouts, and where there is no associated logout, then I want to
retrieve a null.
My data looks similiar to:
userid event event_time
aaaaa Log in 2/27/06 15:05:30
bbbbb Log in 2/27/06 15:06:25
bbbbb Log out 2/27/06 16:18:03
aaaaa Log in 2/28/06 09:00:00
aaaaa Log out 2/28/06 12:28:00
What I would like to get back from my query is:
userid Log in Log out
aaaa 2/27/06 15:05:30
bbbb 2/27/06 15:06:25 2/27/06 16:18:03
aaaa 2/28.06 09:00:00 2/28/06 12:28:00
Thanks for your help