H
hermanko
Hi,
Let's say I have the following table that contains historical data on
file info:
FileCode Name Version
01 Alpha 1
01 Alpha 2
01 Alpha 3
02 Bravo 1
03 Charlie 1
03 Charlie 2
I would like an SQL statement to select distinct FileCodes in a query
(i.e. 01, 02, 03), while selecting the most recent version of the Name,
and doesn't include version field, so that the resulting query looks
like this:
01 Alpha 3
02 Bravo 1
03 Charlie 2
I'm a beginner with SQL, so any help would be greatly appreciated!
Herman
Let's say I have the following table that contains historical data on
file info:
FileCode Name Version
01 Alpha 1
01 Alpha 2
01 Alpha 3
02 Bravo 1
03 Charlie 1
03 Charlie 2
I would like an SQL statement to select distinct FileCodes in a query
(i.e. 01, 02, 03), while selecting the most recent version of the Name,
and doesn't include version field, so that the resulting query looks
like this:
01 Alpha 3
02 Bravo 1
03 Charlie 2
I'm a beginner with SQL, so any help would be greatly appreciated!
Herman