Quote:
Originally Posted by johnoa
I can't think of a more practical way to do this. I certainly don't want to add 200 boolean columns to my Inventory table. Any ideas? Thanks.
|
For example:
CREATE TABLE Inventory
(PropertyNumber INTEGER NOT NULL,
SoftwareType INTEGER NOT NULL,
PRIMARY KEY (PropertyNumber, SoftwareType));
INSERT INTO Inventory (PropertyNumber, SoftwareType) VALUES (125,25);
INSERT INTO Inventory (PropertyNumber, SoftwareType) VALUES (125,39);
...
INSERT INTO Inventory (PropertyNumber, SoftwareType) VALUES (126,3);
INSERT INTO Inventory (PropertyNumber, SoftwareType) VALUES (126,16);