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
4
u/Wojtkie May 20 '26
Yeah if it’s poorly formatted it implies that they haven’t had to read or maintain it much in their past experience. I can’t write unformatted SQL anymore after inheriting 3k+ LOC business critical stored procs.