N
NewAccessDude
Greetings,
I have been asked to upload a large report provided to us by a 3rd party and
pull very specific columns, then with that data I need the oldest date
available in the column Evt Dt.
For example:
COL1 COL2 COL3 COL4 COL5 COL6 COL7
info info info info info info
8/20/2008
info info info info info info
8/13/2008
I have pulled columns 1-7 from the massive report provided to us, but I have
duplicate information where the only difference is the date. I need to pull
the oldest date for my query.
SELECT DISTINCTROW [BNSF 2].Unit, [BNSF 2].Train, [BNSF 2].Destination,
[BNSF 2].Vessel, [BNSF 2].Voyage, [BNSF 2].[Evt Dt], Trains.Route
FROM [BNSF 2] INNER JOIN Trains ON [BNSF 2].[Destination St]=Trains.State
GROUP BY [BNSF 2].Unit, [BNSF 2].Train, [BNSF 2].Destination, [BNSF
2].Vessel, [BNSF 2].Voyage, [BNSF 2].[Evt Dt], Trains.Route
HAVING ((([BNSF 2].Train)<>""))
ORDER BY [BNSF 2].Unit, [BNSF 2].[Evt Dt];
Thanks
I have been asked to upload a large report provided to us by a 3rd party and
pull very specific columns, then with that data I need the oldest date
available in the column Evt Dt.
For example:
COL1 COL2 COL3 COL4 COL5 COL6 COL7
info info info info info info
8/20/2008
info info info info info info
8/13/2008
I have pulled columns 1-7 from the massive report provided to us, but I have
duplicate information where the only difference is the date. I need to pull
the oldest date for my query.
SELECT DISTINCTROW [BNSF 2].Unit, [BNSF 2].Train, [BNSF 2].Destination,
[BNSF 2].Vessel, [BNSF 2].Voyage, [BNSF 2].[Evt Dt], Trains.Route
FROM [BNSF 2] INNER JOIN Trains ON [BNSF 2].[Destination St]=Trains.State
GROUP BY [BNSF 2].Unit, [BNSF 2].Train, [BNSF 2].Destination, [BNSF
2].Vessel, [BNSF 2].Voyage, [BNSF 2].[Evt Dt], Trains.Route
HAVING ((([BNSF 2].Train)<>""))
ORDER BY [BNSF 2].Unit, [BNSF 2].[Evt Dt];
Thanks