~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/distinct.result

  • 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:
397
397
SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID;
398
398
email   shipcode
399
399
test1@testdomain.com    Z001
 
400
test2@testdomain.com    R002
400
401
test2@testdomain.com    Z001
401
 
test2@testdomain.com    R002
402
402
test3@testdomain.com    Z001
403
403
SELECT DISTINCTROW email FROM t1 ORDER BY dateentered DESC;
404
404
email
529
529
EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2
530
530
WHERE t1_1.a = t1_2.a;
531
531
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
532
1       SIMPLE  t1_1    ALL     PRIMARY NULL    NULL    NULL    3       Using where; Using join buffer
532
533
1       SIMPLE  t1_2    index   PRIMARY PRIMARY 4       NULL    3       Using index; Using temporary
533
 
1       SIMPLE  t1_1    ALL     PRIMARY NULL    NULL    NULL    3       Using where; Using join buffer
534
534
EXPLAIN SELECT a FROM t1 GROUP BY a;
535
535
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
536
536
1       SIMPLE  t1      index   NULL    PRIMARY 4       NULL    3       Using index