~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_group.test

  • Committer: Andrew Hutchings
  • Date: 2010-09-08 19:03:09 UTC
  • mfrom: (1750 staging)
  • mto: (1750.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1751.
  • Revision ID: andrew@linuxjedi.co.uk-20100908190309-mya1nu7xvo1fpvk8
Merge trunk into branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
 
129
129
insert into t2 values('AAA', 10, 0.5);
130
130
insert into t2 values('BBB', 20, 1.0);
 
131
--sorted_result
131
132
select t1.a1, t1.a2, t2.a1, t2.a2 from t1,t2;
132
133
 
133
134
select max(t1.a1), max(t2.a1) from t1, t2 where t2.a2=9;
629
630
CREATE TABLE t2 (a INT PRIMARY KEY, b INT);
630
631
INSERT INTO t2 VALUES (1,1), (3,3);
631
632
 
 
633
--sorted_result
632
634
SELECT 
633
635
  (SELECT SUM(c.a) FROM t1 ttt, t2 ccc 
634
636
   WHERE ttt.a = ccc.b AND ttt.a = t.a GROUP BY ttt.a) AS minid