select top 1 ToDate from UrTable order by ToDate desc select max(ToDate) from UrTable
"SELECT fileds FROM tablename WHERE (date=(SELECT MAX(date) FROM tablenmae ))";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)