答案 0 :(得分:0)
简单的INNER JOIN可以解决您的问题 -
SELECT T1.[Branch Code]
,T1.[CustomerID]
,T2.[Customer Name]
,T1.[Advised Amount]
FROM Table1 T1
INNER JOIN Table2 T2
ON T1.CustomerID = T2.CustomerID
答案 1 :(得分:0)
使用内部联接.....您可以使用列名来代替*
Select * from Table1 as a
inner join Table2 as b on a.CustomerId = b.CustomerId