1
Indepenedentサブクエリこれらの2つのクエリは同じですか/同じ出力を与えますか?
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を選んだ顧客を見つけるべきです。