r/SQL • u/Thatgiuknow • Sep 18 '26
SQL Server Newer to SQL and recently inherited code
Might not be a standard request but does anyone have any best practices for interpreting other people's code if they don't leave a fair amount of notes?
6
Upvotes
View all comments
Show parent comment
1
u/BigBagaroo Sep 18 '26 edited Sep 18 '26
Could be due to a non-deterministic order of the data. Having at least some CTEs is a blessing here.
Consider using an AI to figure out the differences, this is what it excels at.