core reorg
[csql.git] / test / sql / Aggregate / test005.ksh
blobcd49f234ece1f00d5a1ac18e73603be0ec45b951
1 #!/bin/ksh
2 # create table t1(f1 int,f2 int,f3 int,primary key(f1));
3 # create table t2(f1 int,f2 int,f3 int,primary key(f1));
4 # Insert 5 records in each.
5 # select query with count,sum,avg,min,max.and Group By.
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;
22 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/aggregate5.sql
23 if [ $? -ne 0 ]
24 then
25 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/dropt1t2.sql > /dev/null 2>&1
26 exit 2;
27 fi
29 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/dropt1t2.sql > /dev/null 2>&1
30 exit 0;