BigMemory Go 4.3.2 | Product Documentation | BigMemory Go Developer Guide | Searching with BigMemory SQL | SQL Syntax and Examples | ORDER BY and GROUP BY Together
 
ORDER BY and GROUP BY Together
If ORDER BY is used with GROUP BY, the ordering attributes are limited to those listed in the GROUP BY clause.
select age from Person where ((age > 100 and zip = 20144) or time > 10)
group by age order by age ascending
select age, zip from Person where ((age > 100 and zip = 20144) or time > 10)
group by age, zip order by age asc, zip desc

Copyright © 2010 - 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release