C
Chris L
Hi,
I have a table 'tbl_Opt' which consist of
OptionNumber
BIT0
BIT1
BIT2
BIT3
OptionNumber is a primary key and its value is from 1~3
I have another table call tbl_Mem which has ItemID(primary key), ItemName,
etc and each ItemName should have a set of tbl_Opt (OptionNumber 1~3, with
unique values of Bit0~Bit3). For example:
Item1 OptionNumber Bit0 Bit1 Bit2 Bit3
1 0 0 1 0
2 0 0 0 0
3 1 1 0 1
Item2 1 0 0 0 0
2 1 1 1 1
3 0 1 0 1
.....
I tried to create a 3rd table called tbl_OptSet which has these members,
OptSetID (primary key)
OptionNumber (foreign key)
ItemID(foreign key)
but it seems that I can't get the structure correctly. Can anyone enlighten
me please.
Regards,
Chris
I have a table 'tbl_Opt' which consist of
OptionNumber
BIT0
BIT1
BIT2
BIT3
OptionNumber is a primary key and its value is from 1~3
I have another table call tbl_Mem which has ItemID(primary key), ItemName,
etc and each ItemName should have a set of tbl_Opt (OptionNumber 1~3, with
unique values of Bit0~Bit3). For example:
Item1 OptionNumber Bit0 Bit1 Bit2 Bit3
1 0 0 1 0
2 0 0 0 0
3 1 1 0 1
Item2 1 0 0 0 0
2 1 1 1 1
3 0 1 0 1
.....
I tried to create a 3rd table called tbl_OptSet which has these members,
OptSetID (primary key)
OptionNumber (foreign key)
ItemID(foreign key)
but it seems that I can't get the structure correctly. Can anyone enlighten
me please.
Regards,
Chris