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
8
u/Achsin May 20 '26
I’ve used it once. Wrote a whole bunch of stuff, realized I needed to join things the other way, didn’t want to do a lot of rewriting and threw in the right join instead. It wasn’t something that was going to be saved for posterity, I just needed it to run once.