Ok. Here is what I'm dealing with. I have TableA which is structured like this:
ItemID, S1F1_a, S1F1_b, S1F1_c, S1F2_a, S1F2_b, S1F2_c...
and so on where the F# in the field name changes up to F9 and then the S# increments going up to S5F9_(a,b,c).
Ideally, the table should be structured like this:
ID, ItemID, Category (S1F1, S1F2 or whatever), Aval, Bval, Cval
The goal is to be able to look at an individual Category's A value under an ItemID based on values of that Category's values B and C. I am expecting multiple results from a single ItemID.
Did that make sense? If not maybe this will help. I'd like to do this:
Select ItemID, Category, Aval from tableA where (tableA.Bval <> Null and tableA.Cval <> 1) AND (tableA.ItemID = 100)
Anyone have any suggestions on this?
Thanks.
Brian
ItemID, S1F1_a, S1F1_b, S1F1_c, S1F2_a, S1F2_b, S1F2_c...
and so on where the F# in the field name changes up to F9 and then the S# increments going up to S5F9_(a,b,c).
Ideally, the table should be structured like this:
ID, ItemID, Category (S1F1, S1F2 or whatever), Aval, Bval, Cval
The goal is to be able to look at an individual Category's A value under an ItemID based on values of that Category's values B and C. I am expecting multiple results from a single ItemID.
Did that make sense? If not maybe this will help. I'd like to do this:
Select ItemID, Category, Aval from tableA where (tableA.Bval <> Null and tableA.Cval <> 1) AND (tableA.ItemID = 100)
Anyone have any suggestions on this?
Thanks.
Brian