adding test scripts
[csql.git] / test / sql / Join / test004.ksh
blobbf4af9afde908ad6fcf870b88aa0adf8bcf54423
1 #!/bin/ksh
2 # Test Case
3 # 5.
4 # Testing or, and operators in join.
5 # Create t1,t2,t3 table with 5 records each.
6 # select * from t1,t2,t3 where t1.f2= t2.f2 and t1.f3 = t3.f2.
7 # select * from t1,t2,t3 where t1.f2= t2.f2 or t1.f3 = t3.f2.
9 # AUTHOR : Jitendra Lenka
11 QUITFILE=${PWD}/sql/Join/quit.sql
12 REL_PATH=.
13 if [ -s "$QUITFILE" ]
14 then
15 REL_PATH=`pwd`/sql/Join
19 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/createt1t2t3.sql > /dev/null 2>&1
20 if [ $? -ne 0 ]
21 then
22 exit 1;
25 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/join4.sql
26 if [ $? -ne 0 ]
27 then
28 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1
29 exit 2;
33 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1
34 exit 0;