I have the table tableA
and tableB
.
I'm making a select of all fields from both tables by joining them together with left Join
select * from tableA
left join tableB on tableA.id = tableB.id
But the relationship is from 1 to N, in the case I have 1 record in A and several in B.
How do I return ALL fields of the 2 tables without repeating?
I can not use Distinct
, Group By
because there are more than 100 fields.
Something similar is coming with;
Conta ItemId
000001 PT-BR
000001 EN
000001 USA
000002 PR-BR