Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2011
Questions

Q46

MCQ2 marks, −0.67DatabasesMedium

Database table by name Loan_Records\text{Loan\_Records} is given below.

BorrowerBank_ManagerLoan_AmountRamesh Sunderajan10000.00SureshRamgopal5000.00MaheshSunderajan7000.00\begin{array}{|c|c|c|} \hline \textbf{Borrower} & \textbf{Bank\_Manager} &\textbf{Loan\_Amount} \\\hline \text{Ramesh }& \text{Sunderajan} & 10000.00 \\\hline \text{Suresh} & \text{Ramgopal} & 5000.00 \\\hline \text{Mahesh} & \text{Sunderajan} & 7000.00\\\hline \end{array}

What is the output of the following SQL query?

SELECT count(*)
FROM (
    (SELECT Borrower, Bank_Manager FROM Loan_Records) AS S
    NATURAL JOIN
    (SELECT Bank_Manager, Loan_Amount FROM Loan_Records) AS T
);
Sign in to save attempts.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.