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

-2

u/foxsimile May 21 '26

It is absolutely not unreadable unless you’re illiterate, in which case you’re forgiven. I’ve written many, and I’ve spent an enormous amount of time unfucking queries written by developers who are too lazy to do their job properly the first time.