~drizzle-developers/ubuntu/natty/drizzle/natty

« back to all changes in this revision

Viewing changes to tests/r/distinct.result

  • Committer: Monty Taylor
  • Date: 2010-09-09 18:35:25 UTC
  • mto: (1308.1.63 trunk)
  • mto: This revision was merged to the branch mainline in revision 1312.
  • Revision ID: mordred@inaugust.com-20100909183525-6l72i1glofd3qe5m
Tags: upstream-2010.08.1742
ImportĀ upstreamĀ versionĀ 2010.08.1742

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