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 😃
48
Upvotes
View all comments
Show parent comment
2
u/Tontonsb May 21 '26
As a programmer vulgaris, not an SQL one, I hate short aliases entirely. When I write SQL, I use aliases to make it more descriptive not less, e.g. if the join takes some specific rows, I will do something like
join prices as prices_usdorjoin orders as latest_orders.