I have the following TSQL query:
SELECT DISTINCT MyTable1.Date FROM MyTable1 INNER JOIN MyTable2 ON MyTable1.Id = MyTable2.Id WHERE Name = \'John\' ORDER BY