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 😃
53
Upvotes
View all comments
Show parent comment
2
u/Common-Author-8441 May 20 '26
totally, i also prefer the table names 100% of the time. going back to the FROM line to check what the aliases are is never fun. unfortunately, in all my courses, i've only seen aliases like a b c being much more common than actually writing out the table names, so then i came to think that that's how people do it in practice.