Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Database Schema: branch ( branch _ name, branch _ city, assets ) customer ( cust _ ID , customer _ name, customer _ street, customer

Database Schema:
branch ( branch_name, branch_city, assets )
customer ( cust_ID, customer_name, customer_street, customer_city )
loan ( loan_number, branch_name, amount )
borrower ( cust_ID, loan_number )
account ( account_number, branch_name, balance )
depositor ( cust_ID, account_number )
Write a query to retrieve a list of branch_names for every branch that has at least one customer living in 'Harrison' that has a deposit account with them. Branch names should not be duplicated.
Your solution must include a subquery and a JOIN.

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions