Sep 6, 2002 #1 shelron Technical User Apr 9, 2002 135 US I have a transaction table with an average of 5 rows per unique project. I would like to find the most recent date for all projects. The result needs to return one row for each unique project, with that row being the last entry of the set. Help, Ron
I have a transaction table with an average of 5 rows per unique project. I would like to find the most recent date for all projects. The result needs to return one row for each unique project, with that row being the last entry of the set. Help, Ron
Sep 6, 2002 1 #2 karluk MIS Nov 29, 1999 2,485 US You can simply use the max function with a group by clause select project, max(date) from transaction_table group by project Upvote 0 Downvote
You can simply use the max function with a group by clause select project, max(date) from transaction_table group by project
Sep 6, 2002 Thread starter #3 shelron Technical User Apr 9, 2002 135 US Thanks for the tip, the max gave me some problems, but also got me pointed in the right direction. I ended up using a last function, then grouping, worked like a charm.. thanks, ron Upvote 0 Downvote
Thanks for the tip, the max gave me some problems, but also got me pointed in the right direction. I ended up using a last function, then grouping, worked like a charm.. thanks, ron