SQL Server Error Msg 5319 – Aggregates are not allowed in a WHEN clause of a MERGE statement.

In this blog post, let’s learn about the error message “5319 – Aggregates are not allowed in a WHEN clause of a MERGE statement.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

5319 – Aggregates are not allowed in a WHEN clause of a MERGE statement.

Reason for the Error

To be update soon…

Solution

To be update soon…