Question: Consider the Bank Database schema: branch ( branch _ name: string, branch _ city: string, assets: real ) account ( account _ number: integer, branch

Consider the Bank Database schema:
branch (branch_name: string, branch_city: string, assets: real)
account (account_number: integer, branch_name: string, balance: real)
depositor (customer_name: string, account_number: integer, customer_city: string)
The key fields are underlined, and the domain of each field is listed after the field name. Therefore branch_name is the key for branch, account_number is the key for account, and customer_name and account_number together form the key for depositor. The depositor relation lists the customer name(s) for each account
Write the following queries in SQL.
i. List in alphabetic order the names of all customers having an account in Gandhinagar branch
ii. Find all branches that have greater total account balance than Jayanagar branch
iii. Find all branches, of Bangalore city, which has an account of all the customers located in Bangalore.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!