i have a table say Tblx having columns col1(Primary Key and Autonumber),col2(Numeric),col3(date),col4(String)
Now i would like to find all those rows from this table that have the max of date column i.e col3 in a single query.
Sample data:
col1 col2 col3 col4
1 100 25/02/2001 String1
2 100 15/03/2001 String2
3 101 23/02/2001 strng4
4 102 01/01/2001 string5
5 100 17/01/2001 string6
6 106 23/02/2001 string7
Result:
2 100 15/03/2001 String2
3 101 23/02/2001 strng4
4 102 01/01/2001 string5
6 106 23/02/2001 string7
By now i have done this by first creating one view containing all the max(col3) and then refering this view in a 2nd query. But i want the results in a single query.
Plz help me if u can.
Thanks
Now i would like to find all those rows from this table that have the max of date column i.e col3 in a single query.
Sample data:
col1 col2 col3 col4
1 100 25/02/2001 String1
2 100 15/03/2001 String2
3 101 23/02/2001 strng4
4 102 01/01/2001 string5
5 100 17/01/2001 string6
6 106 23/02/2001 string7
Result:
2 100 15/03/2001 String2
3 101 23/02/2001 strng4
4 102 01/01/2001 string5
6 106 23/02/2001 string7
By now i have done this by first creating one view containing all the max(col3) and then refering this view in a 2nd query. But i want the results in a single query.
Plz help me if u can.
Thanks