Skip to main content
All Problems
medium0% acceptance

Expired Cards with Customer Info

The card services team needs a report of all expired cards along with customer contact information. Return customer first_name, last_name, email, card_number, card_type, and expiry_date. Only include cards where status is 'expired'. Sort by expiry_date ascending.

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