Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

join two tables on Column where column has value specified more than once

$
0
0
I have two tables with below data table 1 Id name company 1 aaa yyy 1 aaa bbb table 2 Id designation 1 manager 1 manager When I join these on ID, I get 4 rows but instead I want to get two rows. target table:

Viewing all articles
Browse latest Browse all 3145

Trending Articles