I have two tables
TableA with Fields TrackNum,RevNum,AName
TableB with Fields TrackNum,Date,BName,Descri
ption
They are linked by TrackNum field in the sense that many records in TableA can have the same TrackNum but then have sequential RevNum's. The link into TableB is such that all the records with TrackNum = 1 will be linked to the same record in TableB regarless of the RevNum in TableA.
Also for a given Tracknum in TableB there can be a number of records with different dates and the same value in BName.
I need to be able to create a select query to do the following ( I can do this in code, but was wanting to see if there was a more elegant solution using SQL)...
Select from TableA the TrackNum,RevNum,AName with the Largest RevNum for a given Tracknum as well as the value from TableB that has the Date,BName, and Description for the TrackNum selected in A and the most recent Date in TableB
Start Free Trial