I have multiple ProductTable
s like this:
ProductTable1
ProductTable2
ProductTable3
Please note that the ProductTable
s are different in design.
I need to reference a customers products, they could have multiple different products - how should I do that?
I could make a Order
table (mapping) like this:
[Order]
Id
AccountId
ProductId
ProductType
Then I could insert in ProductType
the name of the ProductTable
. So in a query I would get an ProductId
and the table name (type) of the product so I could make a new query based on that. I guess that is what's called LookUp
?
But the downside of this is that the SQL database doesn't know the relations between an Account
and the Product
.
Is there a better way to achieve this?
I am trying to build a CMDB for our company. Customers can have physical servers, virtual servers, VPN tunnels, Firewalls, other hardware etc. That is why I need to have multiple products because they share little with each other.