I would greatly appreciate it if someone could help me formate the SQL code I need to return only the records I want.
Here's the scenario. I have a table that consists of records that contain a integer and a date/time. There can be a one to many relationship between the integer field and the date/time field. For Example:
Integer Date
---------------------
3 10/2/2002 10:34am
3 10/2/2002 10:34am
3 10/2/2002 3:32pm
3 10/2/2002 3:32pm
4 10/3/2002 5:50pm
4 10/3/2002 5:50pm
4 10/3/2002 5:50pm
5 10/7/2002 3:34pm
I'm trying to write an SQL statement so for each integer in the table, I get the records that have th latest date in the date field.
Any help in this area would be greatly appreciated.
Here's the scenario. I have a table that consists of records that contain a integer and a date/time. There can be a one to many relationship between the integer field and the date/time field. For Example:
Integer Date
---------------------
3 10/2/2002 10:34am
3 10/2/2002 10:34am
3 10/2/2002 3:32pm
3 10/2/2002 3:32pm
4 10/3/2002 5:50pm
4 10/3/2002 5:50pm
4 10/3/2002 5:50pm
5 10/7/2002 3:34pm
I'm trying to write an SQL statement so for each integer in the table, I get the records that have th latest date in the date field.
Any help in this area would be greatly appreciated.