Skip to main content
All Problems
easy0% acceptance

Customers Without Any Loans

The sales team wants to target customers who have never taken a loan. Return customer id, first_name, last_name, and email. Use NOT IN with a subquery. Sort by 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