Skip to main content
All Problems
medium0% acceptance

Accounts with Card Count

The card operations team wants to know how many cards are linked to each account. Return account id, account_type, balance, and the number of cards (card_count). Include accounts that have zero cards. Sort by card_count descending.

Schema

🔑idINT
🔗customer_idINT
account_typeTEXT
balanceREAL
currencyTEXT
opened_atTEXT
statusTEXT
postgresql

Run your query to see results

Press Ctrl + Enter to execute