i'm not quite sure what you are trying to do here, but there are 2 things
first you are referencing R3 outside of its scope, second you have a where instead of an and, here is my shot at what i think you are trying to do
select * from Results RT1
where RT1.RDate = (select max(RT2.RDate) from Results RT2)
and RT1.RTime =
(select max(RT3.RTime) from Results RT3
where RT3.RDate = (select max(RT4.RDate) from Results RT4))
dickersonka
Veteran Poster
1,175 posts since Aug 2008
Reputation Points: 130
Solved Threads: 143
Is the query taking that long to execute anyway?
I would suggest the bottom one, the less tables that are involved generally the more speed achieved, if performance is really that big of an issue with this query, then the cast will be slower but I don't think its that big of a deal here
dickersonka
Veteran Poster
1,175 posts since Aug 2008
Reputation Points: 130
Solved Threads: 143