Select 车辆, Sum(Convert(int, 结束日期-开始日期)) From Table
Group By 车辆
Order By 车辆