Returning the most recent logon for each user

  • My apologies if this is simple but it seems to have me stumped.

    My database has an audit log table that records all transactions in a linked application. As part of reporting requirements I need to find out the most recent date that each person has logged on to the system. The audit log holds records of every logon but I can't seem to return the most recent logon for each distinct user?

    Could anyone offer any advice?

    Thanks in advance

    Gabe.

  • select max(logdate)

    from table

    group by username

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply