r/SQL • • 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)

1 Upvotes

27 comments sorted by

View all comments

Show parent comment

1

u/burke166 Jul 13 '26

Not sure I understand this response. You get polymorphism with unique keys per Entity. Polymorphism doesn't care what the key value is, it doesn't even need key values.