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

join tables

$
0
0

Hi,Im tying to join tables to get the result but it is not showing any data,i have shipping address column in both tables  iwant to show data in single column I don't know how to display .Please have a look where  im doing mistake.

select r1.ProductID,r1.ProductName,r1.PMNO ,r.ShippingInfo,r.ShippingAddress ,rs.ShippingAddress from R2InventoryTable r1  inner  join  RecycleComponents1Table r on r1.ProductID=r.ProductID
 inner  join
ReSaleorReStock1Table rs on r1.ProductID=rs.ProductID
where  r1.HazMat='No' order by ProductID

if I join two tables it is showing data

select r1.ProductID,r1.ProductName,r1.PMNO ,r.ShippingInfo,r.ShippingAddress  from R2InventoryTable r1  inner  join  RecycleComponents1Table r on r1.ProductID=r.ProductID

where  r1.HazMat='No' order by ProductID


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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