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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started