TSQL Order BY on occasion doesn't order correctly
问题 TSQL MSSQL 2008r2 I'm re-writing the question to try and make it clear what the issue is that I'm trying to explain. I've got a stored proc that takes 3 parameters. VehicleKey, StartDate and EndDateTime. I'm querying a Data Warehouse db. So the data shouldn't change. When the proc is called with the same parameters then most of the time the results will be as expected but on some random occasions, with those same parameters, the results differ. I'm querying a Data WH so the data doesn't