Introduction
Basic CTEs
8. Syntax with columns – exercise
Summary

Instruction

Good. Now it's your turn to write the query from scratch!

Exercise

Count the number of projects for which the total sum of donations exceeds 50% of the MinimalAmount. Name the column CountProjects.

Stuck? Here's a hint!

In the CTE, use SUM(Amount). Remember, you will have to give a name to this column.