adding test scripts
[csql.git] / test / sql / Aggregate / testnw006.ksh
blobf77995e7d231a4d6ad93527c51712e3a1fa7613d
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 # select query with count,sum,avg,min,max and Group By.
7 # select query with count,sum,avg,min,max and Group By on non existing field.
8 #
9 # Author : Jitendra Lenka
11 QUITFILE=${PWD}/sql/Aggregate/quit.sql
12 REL_PATH=.
13 if [ -s "$QUITFILE" ]
14 then
15 REL_PATH=`pwd`/sql/Aggregate
18 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/createt1t2.sql > /dev/null 2>&1
19 if [ $? -ne 0 ]
20 then
21 exit 1;
24 $CSQL_INSTALL_ROOT/bin/csql -o 4 -s $REL_PATH/aggregate6.sql
25 if [ $? -ne 0 ]
26 then
27 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/dropt1t2.sql > /dev/null 2>&1
28 exit 2;
29 fi
31 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/dropt1t2.sql > /dev/null 2>&1
32 exit 0;