3 #Create t11 table with 5 fields f1,f2,f3,f4,f5
4 #Create t13 table with 2 fields f7,f8
5 #Insert 3 records in each.
6 #(a)select t11.f1,t11.f2,t13.f7,t13.f8 from t11,t13 where t11.f5=t13.f8;
7 #(b)select f1,f3,f7,f8 from t11,t13 where t11.f5=t13.f8;
8 #(c)select t11.f1,t11.f2,t12.f1,t12.f2 from t11,t12,t13 where t13.f8 > t11.f5;
9 #(d)select f1,f3,f7,f8 from t11,t13 where t13.f8 < t11.f5;
10 #(e)select f1,f3,f7,f8 from t11,t13 where f5 > f8;
12 # AUTHOR : Jitendra Lenka
14 QUITFILE
=${PWD}/sql
/Join
/quit.sql
18 REL_PATH
=`pwd`/sql
/Join
22 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/tablet11t13.sql
> /dev
/null
2>&1
30 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/join9.sql
33 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/dropt11t13.sql
> /dev
/null
2>&1
40 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/dropt11t13.sql
> /dev
/null
2>&1