Hi, I have the follwoing select statement which extracts for a prac_no with a respective max (col_uid)select prac_no, max(col_uid) as max_col_uid from gprdsql.TblCollections where stage = 'Processed'group by prac_noorder by prac_no
ResultsPrac_no max_col_uid 1 1002 8793 566Now, I wanted to add an additional field and re-wrote the query as; select prac_no, col_date, max(col_uid) as max_col_uid from gprdsql.TblCollections where stage = 'Processed'group by prac_no, col_dateorder by prac_no
Results Prac_no col_date max_col_uid 1 12/12/2008 981 13/12/2008 971 14/12/2008 1002 15/12/2008 8662 16/12/2008 8793 17/12/2008 5653 18/12/2008 566I want my result to be; Prac_no col_date max_col_uid 1 14/12/2008 1002 16/12/2008 8793 18/12/2008 566Please ny help... Thank you