Consider the following tables, Loan and Borrower, of a bank.\[\begin{array}{c}
\textbf{Loan}\\
\begin{array}{|c|c|c|}
\hline
\textbf{loan\_num} & \textbf{branch \_ name} & \textbf{amount} \\
\hline
L11 & \text{Banjara Hills} & 90000 \\ \hline
L14 & \text{Kondapur} & 50000 \\ \hline
L15 & \text{SR Nagar} & 40000 \\ \hline
L22 & \text{SR Nagar} & 25000 \\ \hline
L23 & \text{Balanagar} & 80000 \\ \hline
L25 & \text{Kondapur} & 70000 \\ \hline
L19 & \text{SR Nagar} & 65000 \\
\hline
\end{array}\end{array}\]\[\begin{array}{c}
\textbf{Borrower} \\
\begin{array}{|c|c|} \hline
\textbf{customer\_name} & \textbf{loan\_num} \\
\hline
\text{Anand} & \text{L11} \\ \hline
\text{Karteek} & \text{L11} \\ \hline
\text{Karteek} & \text{L14} \\ \hline
\text{Ankita} & \text{L15} \\ \hline
\text{Gopal} & \text{L19} \\ \hline
\text{Karteek} & \text{L22} \\ \hline
\text{Karteek} & \text{L23} \\ \hline
\text{Sunil} & \text{L23} \\ \hline
\text{Sunil} & \text{L25} \\
\hline
\end{array}\end{array}\]Query: \(\pi_{\text{branch\_name, customer\_name}}(\text{Loan} \Join \text{Borrower}) \div \pi_{\text{branch\_name}}(\text{Loan})\)where \(\Join\) denotes natural join. The number of tuples returned by the above relational algebra query is (Answer in integer)
GATE DA 2025 · SQL Queries
Solve it on GATE DA practice →More Relational Model & SQL problems