SELECT TOP 1 xyz FROM table1 ORDER BY xyz DESC
select top 1 xyzfrom table1join table2 on table1.key = table2.keyorder by xyz desc