SQL CODE -111

SQL CODE -111
The SQL code -111 comes when the sql statement has aggregate function but it does not contain the column name. Example a Min, Max, Sum or Avg is used without any column.