Академический Документы
Профессиональный Документы
Культура Документы
Branch Table
Branch_Name City
ABC Panjim
DEF Mumbai
PQR Pune
RST Mumbai
XYZ Delhi
Loan Table
Branch_Name Facility
ABC Fixed Deposit
DEF Net Banking
PQR Demand Draft
RST Fixed Deposit
XYZ Demand Draft
Question: Write an SQL query to display all cities that have at least the “Fixed Deposit” facility.
1. SELECT B.City
2. FROM Branch AS B, Assets AS A
3. WHERE B.Branch_Name=A.Branch_Name AND A.Facility='Fixed Deposit'
4. ORDER BY B.CITY;
Explanation:
Output:
City
Mumbai
Panjim