Mercurial > urweb
changeset 237:9182068c9d7c
Tested aggregate functions with GROUP BY
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 28 Aug 2008 12:58:11 -0400 |
parents | f5732dc1316c |
children | 44a1663ad893 |
files | tests/agg.lac |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/agg.lac Thu Aug 28 12:56:08 2008 -0400 +++ b/tests/agg.lac Thu Aug 28 12:58:11 2008 -0400 @@ -5,3 +5,6 @@ val q2 = (SELECT AVG(t1.A) AS X FROM t1) val q3 = (SELECT SUM(t1.C) AS X FROM t1) val q4 = (SELECT MIN(t1.B) AS X, MAX(t1.A) AS Y FROM t1) + +(*val q5 = (SELECT t1.A FROM t1 GROUP BY t1.B)*) +val q5 = (SELECT SUM(t1.A) AS X FROM t1 GROUP BY t1.B)