r/SQL • u/badboyzpwns • May 20 '26
PostgreSQL What are common SQL red flags?
Hello! interview prepping, here wondering what are some common red flags for wrioting SQL?
Like
LIKE failing to index, not having trasnactions, usign SELECT * instead of specific collums, etc 😃
51
Upvotes
View all comments
Show parent comment
24
u/National_Cod9546 May 20 '26
CTE
CTE1
CTE2
CTE2.5
CTE2.7
CTE4
And then every CTE links at least two other ctes. The guy doing that finally retired two years ago. We're still working to get rid of all his logic.