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 😃
50
Upvotes
View all comments
Show parent comment
2
u/StickPuppet May 22 '26
Uhhhg. If you have to use Select Distinct, you either need to prove to me there's a problem in the data, or you're likely doing something wrong. 9 times out of 10, its a missing or incorrect join.