Results 1 to 3 of 3

Thread: SELECT DISTINCT on last date

  1. #1
    Join Date
    Apr 2006
    Posts
    178

    SELECT DISTINCT on last date

    Hello I am having a MS Access 2000 Table

    Table1
    id (autoincrement) | id_users (integer) | LastVisit (date)

    i want to get id, id_users, lastVisit

    to get a list of each users (distinct) for the lastvisit (max(date))

    thank you

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    select id, id_users, max(lastvisit) from tablename group by
    id,id_users

  3. #3
    Join Date
    Apr 2006
    Posts
    178
    thank you Mak

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •