comparison tests/group_by.lac @ 226:b0041cc7e5f7

Basic GROUP BY
author Adam Chlipala <adamc@hcoop.net>
date Thu, 21 Aug 2008 13:59:49 -0400
parents
children 524e10c91478
comparison
equal deleted inserted replaced
225:5ac2cf59b839 226:b0041cc7e5f7
1 table t1 : {A : int, B : string, C : float}
2 table t2 : {A : float, D : int}
3
4 val q1 = (SELECT * FROM t1 GROUP BY t1.B)
5 val q2 = (SELECT * FROM t1, t2 GROUP BY t1.B, t2.D, t1.A)