Results 1 to 2 of 2
  1. #1
    Join Date
    May 2003
    Posts
    70

    Unanswered: SQL statement help

    Hi,

    I have a clients table.
    I also have sign_ins table where clients attendance is being tracked.
    The 2 tables are related by the Client's ID.

    I want to be able to select all clients and do a left join to find out the last sign in date. If there are no sign ins, I want the null value to return hence the left join.

    the problem is that I am having trouble retrieving just the latest one.

    thanks,

  2. #2
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    MAX(dateCol)

    GROUP BY ID

    ?????????????
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

Posting Permissions

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