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
Get step-by-step solutions from verified subject matter experts
