adding test scripts
[csql.git] / test / sql / Join / exp.test036.ksh
blobd5919f0c3628d8d0d8197a86ebe26bfb282cb0e1
1 echo create table t1(f1 int,f2 int);
2 Statement Executed
3 echo create table t2(f1 int,f2 int);
4 Statement Executed
5 echo create table t3(f1 int,f2 int);
6 Statement Executed
7 echo create index idx1 on t1(f1) hash;
8 Statement Executed
9 echo create index idx2 on t2(f1) hash;
10 Statement Executed
11 echo create index idx3 on t3(f1) hash;
12 Statement Executed
13 echo insert into t1 values(101,100);
14 Statement Executed: Rows Affected = 1
15 echo insert into t1 values(303,333);
16 Statement Executed: Rows Affected = 1
17 echo insert into t1 values(505,555);
18 Statement Executed: Rows Affected = 1
19 echo insert into t2 values(505,100);
20 Statement Executed: Rows Affected = 1
21 echo insert into t2 values(404,444);
22 Statement Executed: Rows Affected = 1
23 echo insert into t2 values(101,110);
24 Statement Executed: Rows Affected = 1
25 echo insert into t3 values(303,333);
26 Statement Executed: Rows Affected = 1
27 echo insert into t3 values(101,110);
28 Statement Executed: Rows Affected = 1
29 echo insert into t3 values(222,200);
30 Statement Executed: Rows Affected = 1
31 echo select * from t1,t2,t3 where t1.f1 = t2.f1 and t3.f1=100;
32 ---------------------------------------------------------
33 t1.f1 t1.f2 t2.f1 t2.f2 t3.f1 t3.f2
34 ---------------------------------------------------------
35 100 100 100 110 100 200
36 505 555 505 100 100 200
38 echo select * from t2,t1,t3 where t1.f1 = t2.f1 and t3.f1=100;
39 ---------------------------------------------------------
40 t2.f1 t2.f2 t1.f1 t1.f2 t3.f1 t3.f2
41 ---------------------------------------------------------
42 505 100 505 555 100 200
43 100 110 100 100 100 200
45 echo select * from t3,t1,t2 where t1.f1 = t2.f1 and t3.f1=100;
46 ---------------------------------------------------------
47 t3.f1 t3.f2 t1.f1 t1.f2 t2.f1 t2.f2
48 ---------------------------------------------------------
49 100 200 100 100 100 110
50 100 200 505 555 505 100
52 Statement Executed
53 Statement Executed
54 Statement Executed