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 😃
51
Upvotes
View all comments
Show parent comment
5
u/internerd91 May 20 '26
I got caught out by this just the other day. Was modifying a 300 line script with multiple unhelpfully named CTEs and there was a right join being used as a filter that took me a while to figure out that it was filtering.