Hi,
I'm in the process of designing my database model and I had a couple of questions:
- RE: Number of columns. One of my main tables currently has 85 columns. This table identifies many intricate features of my product and cannot really be adequately broken out into individual tables. I understand that there's no official count on suggested number of columns, but just thought I'd field other professionals.
- RE: Column Contents. This is the trickier one. I so far have about 15 tables. The way I've designed these tables is to first access my main table, and then perform a series of JOINS to the supporting tables to ultimately acquire all of the data about my product. However, one of my tables is for "OperatingSystem", which is populated with various OS' like Windows, Linux, etc. Each OS is identified with a PK. In my main table, I want to say that "these particular operating systems are supported", therefore, a column which is a list of the operating system IDs. For example, MainTable.OperatingSystem column is a nvarchar(30) with the contents of "1,2,3,4".
My reasoning here is that I can read this list into my application and acquire my supporting OS then.
Is that logic efficient? I have a couple of other columns that are lists of Primary Key IDs. When possible, I'll use JOINS, but these are more convenient.
Thanks in advance for your advice.
mickeyj2
I'm in the process of designing my database model and I had a couple of questions:
- RE: Number of columns. One of my main tables currently has 85 columns. This table identifies many intricate features of my product and cannot really be adequately broken out into individual tables. I understand that there's no official count on suggested number of columns, but just thought I'd field other professionals.
- RE: Column Contents. This is the trickier one. I so far have about 15 tables. The way I've designed these tables is to first access my main table, and then perform a series of JOINS to the supporting tables to ultimately acquire all of the data about my product. However, one of my tables is for "OperatingSystem", which is populated with various OS' like Windows, Linux, etc. Each OS is identified with a PK. In my main table, I want to say that "these particular operating systems are supported", therefore, a column which is a list of the operating system IDs. For example, MainTable.OperatingSystem column is a nvarchar(30) with the contents of "1,2,3,4".
My reasoning here is that I can read this list into my application and acquire my supporting OS then.
Is that logic efficient? I have a couple of other columns that are lists of Primary Key IDs. When possible, I'll use JOINS, but these are more convenient.
Thanks in advance for your advice.
mickeyj2