The card operations team wants to identify accounts that have never been issued a card. Use a LEFT JOIN from accounts to cards and filter for NULL. Return account id, customer_id, account_type, balance, and status. Sort by balance descending. Limit to 30.
Schema
🔑idINT
🔗customer_idINT
account_typeTEXT
balanceREAL
currencyTEXT
opened_atTEXT
statusTEXT
postgresql
Run your query to see results
Press Ctrl + Enter to execute