HiI have the following code to try and find the date when a program was created and when work was requested.use DBNameSELECT pr.ProgramID, pr.createdate, min(mr.RequestDate) as requestdateFROM tbl_program prinner join DBName2..tbl_modelrequest mr on mr.programID = pr.programIDinner join DBName2..tbl_ModelerSignoff ms on ms.programID = pr.programIDWHERE Year(pr.createdate) = 2008group by pr.ProgramID, pr.createdateorder by pr.programID asc
In some cases there are multiple RequestDate values and I would like to take the first. Can anybody tell me how I can modify so that only one result for each prograID is given, which chooses the first value of the RequestDate?A calculated field that would create a column showing the difference in number of days between createdate and requestdate would be very helpful also.ThanksLH