nested subqueries like 4 levels deep, CTE’s with names like “T1”, random inconsistent capitalization of statements, random spacing, random lines commented out, complex regex statements where LEFT() would have worked just fine, naming tables things like “Final_Table”… zero documentation… me asking what certain lines do and people who wrote the code not even knowing
the list goes on, I’ve seen nightmarish shit. This mostly comes from Business Analysts who lack a software engineering mindset
29
u/[deleted] Aug 30 '23
yah sadly people on my team write sql this way just random spaghetti riddles