August 18, 2004 at 7:57 am
I have an app in which values of various factors are stored in a table:
August 19, 2004 at 3:07 am
some thing on the lines of the followng should get you there....
select * from table b inner join
(select factor, min(date/time) as mindate from table
group by factor) as a on b.factor = a.factor and b.date/time = a.datetime
determine the min date/time for each factor (group by)...and join this result set back to the original data to get the 'extra values' for the minimum record.
August 19, 2004 at 9:31 am
Use MAX for most recent.
August 19, 2004 at 9:55 am
MAX....
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply