select * from accountinfoone where id in(select max(id) from accountinfoone GROUP BY trading_accountnumber)