r/SQL • u/Designer-Assist-1354 • Jul 12 '26
Discussion Even a SQL Column Can Traumatize You
I just had my one of those "wait... what?" moments while working on AdventureWorks ( PS: Working on my 2nd Project) At start BusinessEntityID totally confused me, I kept thinking it was just an employee ID.
Then I realized it isn't limited to employees at all. It represents everyone, employees, customers, vendors, salespeople, I mean... wow!
It felt confusing at first, but once it clicked, I realized how smart that database design actually is.
In this project I'm keeping everything raw as much as possible, like i have the database, a notebook, a pen, and me with my mind! now think what you can do! i really love this although I just started so... let's see how well it can go on (On my Data Cleaning Phase)
View all comments
Show parent comment
1
u/Anxious-Insurance-91 Jul 13 '26 edited Jul 13 '26
You can do that but you need to think in terms of granularity and then how would you extract reports fast grouped by the gateway. You could explode the value but that will cost you a lot. But having them broken down into separate columns and have a unique index on the 2 columns is the way to go.
I also need to pad myself on the back, because I have been building from 0 to 100 apps for 10 years now. What they teach in schools is either nonsensical or incomplete.