adding test scripts
[csql.git] / test / sql / Join / test002.ksh
blob969d2ea889bde565f8cf83b4e7a8f2c2e0b76cbc
1 #!/bin/ksh
2 # Test Case
3 # 4. Create t1 and t2 table with 5 records each.
4 # select t1.f1, t2.f1, t1.f2, t2.f2 from t1,t2
5 # select * from t1,t2 where t1.f1 = t2.f1 and t1.f1 >100
7 # AUTHOR : Jitendra Lenka
9 QUITFILE=${PWD}/sql/Join/quit.sql
10 REL_PATH=.
11 if [ -s "$QUITFILE" ]
12 then
13 REL_PATH=`pwd`/sql/Join
17 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/createt1t2.sql > /dev/null 2>&1
18 if [ $? -ne 0 ]
19 then
20 exit 1;
23 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/join2.sql
24 if [ $? -ne 0 ]
25 then
26 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/dropt1t2.sql > /dev/null 2>&1
27 exit 2;
31 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/dropt1t2.sql > /dev/null 2>&1
32 exit 0;