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

3

u/OptimusCullen May 20 '26

100% this. Half the time it’s hiding an accidental cross join that’s going to cause severe performance issues when exposed to real prod data sizes.