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 😃

49 Upvotes

192 comments sorted by

View all comments

Show parent comment

2

u/TopologyMonster May 20 '26

For quick ad hoc queries joining two tables that share some column names I will do this. But in anything complicated or that I use often I completely agree, I wanna know where something is coming from without having to go on a search for what c means lol