J
JimP
In the example below, can a single query using subqueries be created to
extract the lowest MthNbr for the lowest year and the highest MthNbr for the
highest year. i.e.
Table1
[Year] [MthNbr]
2004 7
2004 9
2006 3
2006 5
Query results 2004, 7, 2006, 5 (MinYear, MinMthNbr for MinYear, MaxYear,
MaxMthNbr forMaxYear)
extract the lowest MthNbr for the lowest year and the highest MthNbr for the
highest year. i.e.
Table1
[Year] [MthNbr]
2004 7
2004 9
2006 3
2006 5
Query results 2004, 7, 2006, 5 (MinYear, MinMthNbr for MinYear, MaxYear,
MaxMthNbr forMaxYear)