Skip to main content
All Problems
easy0% acceptance

Five Oldest Customer Accounts

Find the five customers who have been with the bank the longest. Return their first_name, last_name, and created_at. Order by created_at ascending and limit to 5.

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