Looking for help from anyone here for good solutions that are probably obvious but that I can’t seem to nail down.

The problem: I need to keep track of different types of devices in a database. The issue is that devices have some attributes that are common (ie asset tag) and others that are not (only certain devices have ip addresses). I don’t want to make a table called ‘device’ in the database that has 3000 fields to it (for every possible attribute a device might have), as having all those empty fields seems like a bad design. I thought about making a table called ‘device_type’, and maybe device_type has a field called ‘attributes’ that lists the fields for X type of device, but I am not sure how to go about doing that.

Also making a table for each type of device is not an easily manageable solution, and once I implement the schema I cannot change it later easily (SOX compliance).

The solution: Please share :)

Related posts:

  1. Serial port over TCP/IP
  2. Gutsy musings
  3. Finding out how long programs have been running on Linux
  4. 5 Things I Have Learned About Corporations
  5. The fall of XML