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 😃
49
Upvotes
View all comments
Show parent comment
1
u/pceimpulsive May 21 '26
I do this
Related services table getting a count via a CTE
CTE is called service_counts (as it returns many rows)