If the SELECT statement does contain a GROUP BY clause, the column or columns specified in the GROUP BY clause must be select terms that are single columns,
not aggregate functions. All the select terms that are not also listed in the GROUP BY clause, however, must be aggregate functions.
In SQL Engine Reference, see
Bitwise Operators for complete information on scalar functions you can use with Pervasive PSQL.