Skip to main content
All Problems
medium0% acceptance

Customers with Multiple Account Types

The cross-selling team wants to find customers who have more than one type of account (e.g., both checking and savings). Return customer_id, first_name, last_name, and the number of distinct account types they hold. Sort by the count descending.

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