select * from  tbl where mgdate=(select max(mgdate) from tbl)