I have simple data in tblLog; three fields - Username, DateTime, Action
What I want is to return the "next" action for each user based on date. The notes I jotted for how I think this needs to be structured is:
I know there is some alias and self-join to do here but I cannot figure it out. Can anyone help?
I joined this forum in 2005. I am still a hack.
What I want is to return the "next" action for each user based on date. The notes I jotted for how I think this needs to be structured is:
Code:
Select Action for Min DateTime
where username = username and DateTime > DateTime
I know there is some alias and self-join to do here but I cannot figure it out. Can anyone help?
I joined this forum in 2005. I am still a hack.