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 πŸ˜ƒ

48 Upvotes

192 comments sorted by

View all comments

Show parent comment

2

u/snowmaninheat May 21 '26 edited May 21 '26

My preferred method is reverse alphabetical order (e.g., `cte_z`, `cte_y`), then so on. It’s an easy way to see the steps.