annotate 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
rev   line source
adamc@226 1 table t1 : {A : int, B : string, C : float}
adamc@226 2 table t2 : {A : float, D : int}
adamc@226 3
adamc@226 4 val q1 = (SELECT * FROM t1 GROUP BY t1.B)
adamc@226 5 val q2 = (SELECT * FROM t1, t2 GROUP BY t1.B, t2.D, t1.A)