This script demonstrates the fundamentals and key clauses of window functions, including the OVER, PARTITION, ORDER, and FRAME clauses, as well as common rules and a GROUP BY use case.
Find the average scores of the customers. Uses COALESCE to replace NULL Score with 0.