Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Summarize Transaction Status | Logical Functions
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Functions in SQL

bookChallenge: Summarize Transaction Status

Compito

Swipe to start coding

Write a query to count the number of transactions for each status in the transactions table using the CASE statement.

  • Count the number of transactions where status is 'completed' and return this as completed_count.
  • Count the number of transactions where status is 'pending' and return this as pending_count.
  • Count the number of transactions where status is 'failed' and return this as failed_count.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 4. Capitolo 6
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Summarize Transaction Status

Scorri per mostrare il menu

Compito

Swipe to start coding

Write a query to count the number of transactions for each status in the transactions table using the CASE statement.

  • Count the number of transactions where status is 'completed' and return this as completed_count.
  • Count the number of transactions where status is 'pending' and return this as pending_count.
  • Count the number of transactions where status is 'failed' and return this as failed_count.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 4. Capitolo 6
single

single

some-alt