SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 39279: Computed columns that use an aggregate function cause problems when "Automatically select groups" is selected in SAS® Enterprise Guide®

DetailsHotfixAboutRate It

In SAS Enterprise Guide, if your query includes a computed column that uses a CASE statement, which, in turn, contains an aggregate function such as SUM() or AVG(), then the Query Builder will generate invalid SQL if you also include an aggregate function in the query.

Once the computed column is included in the query, the Automatically select groups option will include it and generate invalid SQL, resulting in the following error:

ERROR: Summary functions are restricted to the SELECT and HAVING clauses only.

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Enterprise GuideMicrosoft® Windows® for x644.24.39.2 TS2M09.2 TS2M3
Microsoft Windows Server 2003 Datacenter Edition4.24.39.2 TS2M09.2 TS2M3
Microsoft Windows Server 2003 Enterprise Edition4.24.39.2 TS2M09.2 TS2M3
Microsoft Windows Server 2003 Standard Edition4.24.39.2 TS2M09.2 TS2M3
Microsoft Windows XP Professional4.24.39.2 TS2M09.2 TS2M3
Windows Vista4.24.39.2 TS2M09.2 TS2M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.