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

multiple tables query

$
0
0
I have a basic level of t-ql, but can not get me pull this query results. Sorry by my bad englishSELECT pcm.CategoryId, pcm.ProductId, c.mlCode, mlc.codeFROM [cpr_data_bak].[dbo].[Product_Category_Mapping] AS pcm JOIN [cpr_data_bak].[dbo].[Category] AS c ON c.Id = pcm.CategoryId JOIN [cpr_data].[dbo].[MLCategory] AS mlc ON mlc.code = c.mlCode Considering that if I did not include the combination with MLCategory table, if I yields results, and if no results between MLCategory and Category.Be a problem want to combine two tables in different databases?From already thank you very much

Viewing all articles
Browse latest Browse all 3145

Trending Articles