Mercurial > urweb
view tests/agg.ur @ 245:1e24a3e6d614
Rename lacweb.c
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 31 Aug 2008 08:35:00 -0400 |
parents | 71bafe66dbe1 |
children | b66e692422a4 |
line wrap: on
line source
table t1 : {A : int, B : string, C : float} table t2 : {A : float, D : int} val q1 = (SELECT COUNT( * ) AS X FROM t1) 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)