📜  门| GATE CS 2011 |第46章

📅  最后修改于: 2021-06-29 05:19:29             🧑  作者: Mango

下面给出了名称为Loan_Records的数据库表。

Borrower    Bank_Manager   Loan_Amount
 Ramesh      Sunderajan     10000.00
 Suresh      Ramgopal       5000.00
 Mahesh      Sunderajan     7000.00

以下SQL查询的输出是什么?

SELECT Count(*) 
FROM  ( ( SELECT Borrower, Bank_Manager 
          FROM Loan_Records) AS S 
          NATURAL JOIN ( SELECT Bank_Manager, Loan_Amount 
                         FROM Loan_Records) AS T );

(A) 3
(B) 9
(C) 5
(D) 6答案: (C)
解释:

请参阅http://www.geeksforgeeks.org/database-management-systems-set-4/的问题3

这个问题的测验