Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Handle Missing Payment Methods | Section
Functions in SQL
Section 1. Chapter 21
single

single

bookChallenge: 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 transactions table.
  • Replace any null value in the payment_method column with 'Unknown'.
  • The result should show 'Unknown' only where payment_method is null.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 21
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt