Sql server select record with max id