Section 1. Chapter 21
single
Challenge: Handle Missing Payment Methods
Swipe to show menu
Task
Swipe to start coding
Write a query to handle missing payment methods in the transactions table. Your goal is to display all columns, but if the payment_method is null, show 'Unknown' instead.
- Select all columns from the
transactionstable. - Replace any null value in the
payment_methodcolumn with'Unknown'. - The result should show
'Unknown'only wherepayment_methodis null.
Solution
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 21
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat