Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions

Question

3. Did you seek anyones advice?

Answered: 1 week ago

Question

7. What traps should she avoid?

Answered: 1 week ago

Question

5. What decision-making model would you advocate to this person?

Answered: 1 week ago