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
1
u/ComicOzzy sqlHippo May 20 '26
I think the standard should be to use a formatting tool that standardizes the SQL. The same tool hopefully will allow coders to reformat the SQL in a way they prefer while they're reading it or maintaining it, but then change it back to the company standard before checking it back in.