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
3
u/alinroc SQL Server DBA May 21 '26
Hungarian Notation has no place here. Everything is (or should be) strongly typed in your RDBMS, so there's no need to waste visual space with embedding it in the names.
I was once part of a 20+ minute debate in a meeting over Hungarian Notation only to have it ended abruptly when the person on the "pro" side said something that tipped us off that he was actually talking about declaring a variable type instead of using
varin C# (or the equivalent in whatever language he was using). Once we figured that out and explained to him what Hungarian Notation really is, he jumped over to our side and the room was unanimous.