Challenge: Handle Missing Payment Methods
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 4. Luku 3
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Can you explain this in simpler terms?
What are the next steps I should take?
Can you provide an example?
Mahtavaa!
Completion arvosana parantunut arvoon 2.86
Challenge: Handle Missing Payment Methods
Pyyhkäise näyttääksesi valikon
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 4. Luku 3
single