Oracle Error ORA-36276: (XSCGMDLAGG06) The current operator does not need a weight variable.

Oracle Error Message

ORA-36276: (XSCGMDLAGG06) The current operator does not need a weight variable.

Reason for the Error

A weight variable was specified in a context that does not support it.

Solution

Remove the weight variable.