Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL script BRANCH (BR_ Name, Asset, BR_City) CUSTOMER ( CUST_Name, Street, Cust_City) DEPOSIT (Acct_No , BR_Name, Cust_Name, Balance, TYPE) BORROW (Loan_NUM, BR_Name, Cust_Name, Amount) 1.

SQL script
BRANCH (BR_ Name, Asset, BR_City)
CUSTOMER ( CUST_Name, Street, Cust_City)
DEPOSIT (Acct_No , BR_Name, Cust_Name, Balance, TYPE) BORROW (Loan_NUM, BR_Name, Cust_Name, Amount)
1. Find out the loan numbers & names of all customers who borrow from the CARSON branch.
2. Find out the loan numbers, names of customers and the city they live who borrow from the
CARSON branch.
3. Find out who has borrowed over $100,000.
4. List all loan numbers & the branch name. Try to sort them in some ascending or descending
order.
5. List all customers who live in CARSON.
6. Find all customers of the CARSON branch. (Those have a loan, a deposit, or both). Answer the
query with more than one ways.
7. Find all customers of CARSON branch who have an account but not a loan. Answer the query
with more than one ways.
8. Find all customers of CARSON branch who have both an account & a loan. Answer the query
with more than one ways.
9. Find the assets & names of all branches which have depositors who live in Carson.
10. Find all customers who have a deposit account at ALL branches in Carson.

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_2

Step: 3

blur-text-image_3

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

Operations management

Authors: Nigel Slack, Stuart Chambers, Robert Johnston

6th edition

273731602, 978-0273731603

More Books

Students also viewed these General Management questions

Question

r2 = (1 + r0, 1) . (1 + r1, 2) 1 = 1.05 . 1.05 1 = 10.25%

Answered: 1 week ago