diff options
author | unknown <bar@gw.udmsearch.izhnet.ru> | 2002-07-01 20:58:45 +0500 |
---|---|---|
committer | unknown <bar@gw.udmsearch.izhnet.ru> | 2002-07-01 20:58:45 +0500 |
commit | b430c47f1cbf8ec7d27b269718b5ca457c92029b (patch) | |
tree | 7a1893724e3ff3199df5fa6ba07d51294ecfe965 /mysql-test/t | |
parent | 0a47ee155b9b7550e49eae7c967e9d203b3dad5b (diff) | |
parent | fd8c7586929e682c0e264e3b229f6875d30065ad (diff) | |
download | mariadb-git-b430c47f1cbf8ec7d27b269718b5ca457c92029b.tar.gz |
Merge abarkov@work.mysql.com:/home/bk/mysql-4.1
into gw.udmsearch.izhnet.ru:/usr/home/bar/mysql-4.1
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/subselect.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/subselect.test b/mysql-test/t/subselect.test index 78300dc3e09..7b1ebdcbc27 100644 --- a/mysql-test/t/subselect.test +++ b/mysql-test/t/subselect.test @@ -28,4 +28,9 @@ select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from select b,(select avg(t2.a+(select min(t3.a) from t3 where t3.a >= t4.a)) from t2) from t4; select * from t3 where exists (select * from t2 where t2.b=t3.a); select * from t3 where not exists (select * from t2 where t2.b=t3.a); +insert into t4 values (12,7),(1,7),(10,9),(9,6),(7,6),(3,9); +select b,max(a) as ma from t4 group by b having b < (select max(t2.a) +from t2 where t2.b=t4.b); +select b,max(a) as ma from t4 group by b having b >= (select max(t2.a) +from t2 where t2.b=t4.b); drop table t1,t2,t3,t4; |