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

Query to combine two tables based a third table!!

$
0
0
I have three tables A, B, C respectively. Table C is used to map table A and B. Three tables are below:Table A:[img]http://i1065.photobucket.com/albums/u392/nguyenanhminhxd/tableA_zpsa2045f44.png[/img]Table B:[img]http://i1065.photobucket.com/albums/u392/nguyenanhminhxd/tableB_zps39d09ff6.png[/img]Table C:[img]http://i1065.photobucket.com/albums/u392/nguyenanhminhxd/tableC_zps11d46169.png[/img]So what query do I need write to have table like below?Table D[img]http://i1065.photobucket.com/albums/u392/nguyenanhminhxd/tableD_zpsa6a44952.png[/img]Thanks in advance!

Viewing all articles
Browse latest Browse all 3145

Trending Articles