I have a table A with fields that are foreign key integers for the primary key to another table B. The problem I am having is that I have multiple fields in Table A that are the same foreign keys to the primary key in table B.
For Example:
Table A Field 1 Record 1 = 1
Table A Field 2 Record 1 = 2
Table B Field 1 Record 1 = "YES"
Table B Field 1 Record 2 = "NO"
In other words the integers in Table A are lookups for table B's Records. Whenever I do a SQL call it does not pull the record unless both fields in Table A are the same. I do not want this. What I want is to be able to say that items can be "YES" or "NO" but still exist in the same record from Table A. Can anyone tell me where I am going wrong? Thanks
For Example:
Table A Field 1 Record 1 = 1
Table A Field 2 Record 1 = 2
Table B Field 1 Record 1 = "YES"
Table B Field 1 Record 2 = "NO"
In other words the integers in Table A are lookups for table B's Records. Whenever I do a SQL call it does not pull the record unless both fields in Table A are the same. I do not want this. What I want is to be able to say that items can be "YES" or "NO" but still exist in the same record from Table A. Can anyone tell me where I am going wrong? Thanks