i have a program that must fetch information from database & after performing required commands in unix ,o/p must updated back the to database.here fetching information from 3 tables & output must be updated to one table as soon as i get the output for each loop.
`#{Here the loop must run untill i get values from table}
x=0
while [ $x = '0' ]
do
x=`sqlplus -s username/pswd@server << EOF
set head off
select min(col1),max(col1) from table
/
EOF`
echo $x|read a b
x=$a+$b
done
#{here functions based on a & b value }
#{below to update table}
sqlplus -s username/pswd@server<< EOF
update table2 set col3 where ..
commit;
#similar while loop
y=0
while [ $y = '0' ]
do
x=`sqlplus -s username/pswd@server << EOF
set head off
select min(col1),max(col1) from table3
/
EOF`
.
.