Fixed query 1 and added missing query 2.
This commit is contained in:
parent
278126d752
commit
4f2c23b85c
@ -129,12 +129,13 @@ INSERT INTO Borrower VALUES
|
|||||||
|
|
||||||
1. Find the names of all branches in loan relation.
|
1. Find the names of all branches in loan relation.
|
||||||
```sql
|
```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.
|
2. Find all loan numbers for loans made at ‘Wadia College’ Branch with loan amount > 12000.
|
||||||
```sql
|
```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;
|
SELECT DISTINCT branch_city FROM Branch;
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
|
||||||
|
Loading…
Reference in New Issue
Block a user