Fixed query 1 and added missing query 2.

This commit is contained in:
K 2024-11-08 22:32:59 +05:30
parent 278126d752
commit 4f2c23b85c
Signed by: notkshitij
GPG Key ID: C5B8BC7530F8F43F

View File

@ -129,12 +129,13 @@ INSERT INTO Borrower VALUES
1. Find the names of all branches in loan relation.
```sql
SELECT branch_name FROM Loan WHERE amount > 12000;
SELECT DISTINCT branch_name FROM Loan;
```
2. Find all loan numbers for loans made at Wadia College Branch with loan amount > 12000.
```sql
SELECT loan_no FROM Loan WHERE branch_name = 'Wadia College' AND amount > 12000;
```
@ -155,5 +156,3 @@ SELECT cust_name FROM Borrower INNER JOIN Loan on Borrower.loan_no = Loan.loan_n
SELECT DISTINCT branch_city FROM Branch;
```
---