CURRENTGROUP() must be specified as the table argument to a table aggregation function when it is specified as the expression ...