code reorg for Transactionw!
[csql.git] / test / sql / Optimizer / singletabletest2.sql
blobc3bdfe4e1f0d47ac10529017b9b01d1525bd5809
1 create index idx1 on t1 (f1) hash primary;
2 create index idx3 on t1 (f2) tree;
3 echo Multiple predicates Test Cases - 1,2,3
4 echo select * from t1 where f1=10 and f3=20;
5 explain plan select * from t1 where f1=10 and f3 =20;
6 echo select * from t1 where f2>10 and f3=20;
7 explain plan select * from t1 where f1>10 and f3 =20;
8 echo select * from t1 where f3=20 and f1 >10;
9 explain plan select * from t1 where f3 =20 and f1>10;
12 echo Disjunctive Queries Test case - 4,5,6,7,8
13 echo select * from t1 where f1!=10;
14 explain plan select * from t1 where f1!=10;
15 echo select * from t1 where f2!=10;
16 explain plan select * from t1 where f2!=10;
17 echo select * from t1 where f1=10 or f3=20;
18 explain plan select * from t1 where f1=10 or f3 =20;
19 echo select * from t1 where f2>10 or f3=20;
20 explain plan select * from t1 where f2>10 or f3 =20;
21 echo select * from t1 where f3=20 or f2 >10;
22 explain plan select * from t1 where f3 =20 or f2 >10;