I have stored procedure which when I execute in 2 different databases on same server is returning different results.
e.g. in one DB it returns -4, -3.5, 3, -2.5, -2, -1,0
while in other DB it is returning 3, -4, 2.5, -1, -1.5
This has started happening recently. Initially we noticed this in our prod DB but our all test databases were returning correct output which was different from prod db. After we refresh our one test db with prod, the procedure result in test db also changed to incorrect output. Any clues what might be happening or what might have got changed in database level which caused same procedure to return different output.
Procedure is having use of temp tables in case this might have caused something.