In addition to the GROUP BY syntax in a
SELECT statement, Pervasive PSQL supports an extended
GROUP BY syntax that can include vendor strings.
A GROUP BY query returns a result set which contains one row of the select list for every group encountered. (See the
Microsoft ODBC Programmer’s Reference for the syntax of a select list.)
The rows operated on by the set function are those rows remaining after the WHERE search condition is applied. In this example, only those rows in the faculty table that have Salary > 80000 are counted:
The following example shows an extended GROUP BY that includes vendor strings in an escape sequence. You can also find additional information about escape sequences and vendor strings on the Microsoft Web site.