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 😃
50
Upvotes
View all comments
Show parent comment
2
u/sandrrawrr May 21 '26
With anything, these are concepts that can be poorly written. But sometimes, it's 3 am and you're staring at a 5th level of a nested statement and wonder what your life is if you can just turn the whole thing into a few clean CTEs.