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 😃

50 Upvotes

192 comments sorted by

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.

1

u/relyimah May 21 '26

If someone is aliasing tables as a, b, c, … because a course full of theoretical tables used those aliases then this is definitely a red flag 🚩 Shows lack of ability to use your brain.