Chapter 3 · Sorting & Limiting
16. List All Blocked Cards
Easy10 XPFinance
The fraud department needs a list of all blocked cards. Return the card id, card_number, card_type, and issued_at for every card with status 'blocked'. Sort by issued_at descending.
Tables
- PKidINT
- FKaccount_id→ accounts.idINT
- card_numberTEXT
- card_typeTEXT
- expiry_dateTEXT
- statusTEXT
- credit_limitREAL
- issued_atTEXT
Need help?
Ask Sol
AI tutor — looks at your current query and nudges you, without spoiling the answer.
Solution
Try the hints first — solving it yourself is what makes it stick.