Databases · Middle · Question 32 of 75

What is COUNT(*) FILTER (WHERE status = 'paid') used for?

Explanation

For example COUNT(*) FILTER (WHERE status = 'paid') AS paid, COUNT(*) FILTER (WHERE status = 'new') AS new in a single pass.

Further reading

Problem with a question

Databases · Middle · question 32

Test yourself

Take the Databases · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz