Skip to main content
All Problems
hard0% acceptance

Customers with Accounts in Multiple Branch States

The compliance team wants to find customers who live in the same city as a bank branch. Join customers to branches on the city column. Return customer_id, first_name, last_name, city, and the branch name. Sort by city, then last_name.

Schema

🔑idINT
first_nameTEXT
last_nameTEXT
emailTEXT
phoneTEXTNULL
date_of_birthTEXT
cityTEXT
stateTEXT
countryTEXT
created_atTIMESTAMP
postgresql

Run your query to see results

Press Ctrl + Enter to execute