Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Handle Missing Payment Methods | Logical Functions
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Functions in SQL

bookChallenge: Handle Missing Payment Methods

Завдання

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 4. Розділ 3
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Suggested prompts:

Can you explain this in simpler terms?

What are the next steps I should take?

Can you provide an example?

close

bookChallenge: Handle Missing Payment Methods

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 4. Розділ 3
single

single

some-alt