adding test scripts
[csql.git] / test / sql / Optimizer / join_hash_int.sql
blobe7545da60699dab620ddb99242571ef8a6e95b5f
1 echo create table t1(f1 int, f2 int);
2 create table t1(f1 int, f2 int);
3 echo create index hashidxt1f1 on t1(f1) hash;
4 create index hashidxt1f1 on t1(f1) hash;
5 echo create index hashidxt1f2 on t1(f2) hash;
6 create index hashidxt1f2 on t1(f2) hash;
7 echo create table t2(f1 int, f2 int);
8 create table t2(f1 int, f2 int);
9 echo create index hashidxt2f1 on t2(f1) hash;
10 create index hashidxt2f1 on t2(f1) hash;
11 echo create index hashidxt2f2 on t2(f2) hash;
12 create index hashidxt2f2 on t2(f2) hash;
13 echo explain plan select * from t1,t2;
14 explain plan select * from t1,t2;
15 echo explain plan select * from t1,t2 where t1.f1=t2.f1;
16 explain plan select * from t1,t2 where t1.f1=t2.f1;
17 echo explain plan select * from t1,t2 where t1.f1<=t2.f1;
18 explain plan select * from t1,t2 where t1.f1<=t2.f1;
19 echo explain plan select * from t1,t2 where t1.f1!=t2.f1;
20 explain plan select * from t1,t2 where t1.f1!=t2.f1;