r/SQL • • 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

192 comments sorted by

View all comments

Show parent comment

1

u/lalaluna05 May 21 '26

I’m not done until it’s pretty 🥰

1

u/Breitsol_Victor May 21 '26

Have to be careful making it pretty. I got a thing to work, made it pretty, and it was broken.
I had built it without caring about case. Went back to ucase commands.
I think it was a parm in an FTP script that was being generated. Case changed what it returned.