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 😃

51 Upvotes

192 comments sorted by

View all comments

Show parent comment

-16

u/Joe59788 May 20 '26

This is how I make mine.

I like it because its easier to read columns that way and I end up left joining everything most of the time. 

I usually only need 2 tables though for my use cases.

7

u/Bockly101 May 21 '26

But the columns will be the same no matter what alias you pick?