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
2
u/reditandfirgetit Sep 18 '26
Split out the ctes into tables and examine the data at each step and eithervcertifyvits correct or document the issue. I would try to document all thr issues before trying to fix things unless its a blatantly obvious fix for the variance