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
2
u/thesqlguy May 21 '26
Personally, I like short letter abbreviations but not random a,b,c or t1, t2 or cte1, etc.
for example
I think it is far easier to write, scan, read and visually "parse" expressions, joins, formulas with brief aliases than long, dense names.
But definitely not just a,b,c or t1,t2,t3, etc.