ok - i have been working on this for quite some time now, and I have failed.
I have 3 tables I must pass-through to get the information.
TABLE1 contains 1 field. Table1 is the important table because i need to ONLY contain the info that table1 has, no more, no duplicates.
TABLE2 has two fields. It's a linking table to line up the data from table1 to table3.
TABLE3 has many fields, and links with table2.
What happens, after I do the joins, is that TABLE3 will give me more information than what is in TABLE1. This is not logically possible and completely screws up our database (primarily for counting and viewing).
Here is a graphic viewing of what I need:
table1.login_id ---> table2.uid_id
table2.login_id ---> table3.login_id
OR...
Table1--->Table2--->Table3
Table3 contains the information for the unique IDs in Table1.
Can someone possibly write a query for me that does this? I am having the most difficult time doing this simple task.
I have 3 tables I must pass-through to get the information.
TABLE1 contains 1 field. Table1 is the important table because i need to ONLY contain the info that table1 has, no more, no duplicates.
TABLE2 has two fields. It's a linking table to line up the data from table1 to table3.
TABLE3 has many fields, and links with table2.
What happens, after I do the joins, is that TABLE3 will give me more information than what is in TABLE1. This is not logically possible and completely screws up our database (primarily for counting and viewing).
Here is a graphic viewing of what I need:
table1.login_id ---> table2.uid_id
table2.login_id ---> table3.login_id
OR...
Table1--->Table2--->Table3
Table3 contains the information for the unique IDs in Table1.
Can someone possibly write a query for me that does this? I am having the most difficult time doing this simple task.