Hi I have an inner join query as below where I want to run a groupby datemax query on the results of it where [table1].[columnb] is a datetime column. In Access I would save the join query and then run the datemax query on the join query. I'm not sure how I would run this in SQL server to bet the same results though? Any ideas? SELECT [table1].[columnA], [table1].[columnb], [table2].[columnA], [table2].[columnB],FROM table1INNER JOIN [table2] ON [table1].[columnC] = [table2].[columnC]WHERE [table1].[columnA] = 'myrecords'