I have three tables that I need to join. There are several fields in each table that are the same and there is only one common field between all three.
I was using the common field for each table to make the join but the problem I am having is that when I add the third table, I get rows of data in triplicate. (but not for ALL records) The third table has only one field of data that I need. I have tried various kinds of joins but cannot seem to come up with the right combination.
Should I be using DISTINCT here ? Or perhaps a sub SELECT statement within the main select statement ?
Any quidance here is appreciated.
Thanks
I was using the common field for each table to make the join but the problem I am having is that when I add the third table, I get rows of data in triplicate. (but not for ALL records) The third table has only one field of data that I need. I have tried various kinds of joins but cannot seem to come up with the right combination.
Should I be using DISTINCT here ? Or perhaps a sub SELECT statement within the main select statement ?
Any quidance here is appreciated.
Thanks