adding test scripts
[csql.git] / test / sql / Join / test005.ksh
blobaa26e2f0949d2afce556ced760b7a8a942a3c1c7
1 #!/bin/ksh
2 # Test Case
3 # Create t1,t2,t3 table with 5 Records in each.
4 # select t1.f1, t2.f1, t3.f1 from t1,t2,t3 where t1.f2= t2.f2 or t1.f1 >100.
6 # AUTHOR : Jitendra Lenka
8 QUITFILE=${PWD}/sql/Join/quit.sql
9 REL_PATH=.
10 if [ -s "$QUITFILE" ]
11 then
12 REL_PATH=`pwd`/sql/Join
15 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/createt1t2t3.sql > /dev/null 2>&1
16 if [ $? -ne 0 ]
17 then
18 exit 1;
22 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/join5.sql
23 if [ $? -ne 0 ]
24 then
25 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1
26 exit 1;
30 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/dropt1t2t3.sql > /dev/null 2>&1
31 exit 0;