Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Joining 3 tables

$
0
0

Hi Guys,

I trying to join 3 tables to one main table but the result is always multiplying the number of record between each tables.

Heres the scenario:

Table 1

idName

1n1

Table 2

idName

1t2 name1

1t2 name 2

1t2 name 3

Table 3

idName

1t3 name 1

1t3 name 2

How to achieve this kind of result?


table1 IDtable 2 Nametable 3 Name
1t2n1t3n1
1t2n2t3n2
1t2n3null

Thanks in advance,

Danny


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>