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

3

u/relyimah May 21 '26

I feel like this is why everyone is so initially confused by CTEs… I know when I first came across them I thought you could only do one because “CTE” was a command not an alias.

Took me longer than I’d like to admit before I was using them as the powerhouse they can be …