Question: Write the following queries in SQL language using the relational database given below. branch (branch-name, branch-city, assets) customer (ID, customer-name, customer-neighborhood, customer-city) credit (credit-number, branch-name,

Write the following queries in SQL language using the relational database given below. branch (branch-name, branch-city, assets) customer (ID, customer-name, customer-neighborhood, customer-city) credit (credit-number, branch-name, amount) borrower (identification, credit-number) deposit (account-number, branch-name, balance) depositor (ID, account-number) a) Which customers have both a debt loan at Lefke branch and a deposit account at Gemikona branch? b) How many customers have a deposit account of more than 10,000 lira at the Lefke branch? c) Which depositor has the highest account balance? d) List the total number of deposit accounts and total debt loans for each branch of the bank. e) For each branch of the bank, list the highest depository and lowest debt loan holder.

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 Databases Questions!