1
Indepenedent子查詢這兩個查詢是相同還是相同的輸出?
SELECT Cust_Name
FROM Customer_Details
WHERE Cust_ID
IN
(SELECT Cust_ID
FROM Customer_Loan)
AND Cust_ID IN
(SELECT Cust_ID
FROM Customer_Fixed_Deposit);
相關子查詢
SELECT Cust_ID
FROM Customer_Details
WHERE Cust_ID
IN
(SELECT Cust_ID
FROM Customer_Loan
WHERE Customer_Loan.Cust_ID = Customer_Details.Cust_ID)
AND Cust_ID IN
(SELECT Cust_ID
FROM Customer_Fixed_Deposit
WHERE Customer_Fixed_Deposit.Cust_ID = Customer_Details.Cust_ID);
我們應該找到誰的貸款選擇,以及FD客戶。