core reorg
[csql.git] / test / sql / Aggregate / test008.ksh
blob0e5abdaa23766e0f7490a66550d6140347b4fa46
1 #!/bin/ksh
2 #Test Case
3 # create table t1(f1 int,f2 int,f3 int,primary key(f1));
4 # create table t2(f1 int,f2 int,f3 int,primary key(f1));
5 # Insert 5 records in each.
6 # Test "select min(nonexist.f1) from t1"
7 # Author : Jitendra Lenka
9 QUITFILE=${PWD}/sql/Aggregate/quit.sql
10 REL_PATH=.
11 if [ -s "$QUITFILE" ]
12 then
13 REL_PATH=`pwd`/sql/Aggregate
16 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/createt1t2.sql > /dev/null 2>&1
17 if [ $? -ne 0 ]
18 then
19 exit 1;
23 echo "select min(nonexist.f1) from t1 :"
24 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/aggmin4.sql
25 if [ $? -ne 0 ]
26 then
28 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/dropt1t2.sql > /dev/null 2>&1
29 exit 2;
30 fi
33 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/dropt1t2.sql > /dev/null 2>&1
34 exit 0;