Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

sql.parse round

$
0
0
hello. there is an inquiry:
sql1 = sql.parse(
" select sum(maho):1 from ("
& " select round((tisfc010.maho/tisfc010.qpli),4) as maho "
& " from tisfc010 "
& " where tisfc010._index1 = {:3} and "
& " tisfc010.qpli <> 0 and "
& " tisfc010.cwoc like :4 & '.*' and "
& " tisfc010.cwoc not like '.*' & 'B' & '.*' "
& " ) aa"
)
sql.select.bind(sql1, 1, SUM_1)
sql.where.bind (sql1, 3, orno)
sql.where.bind (sql1, 4, mnwc_1_3)
e = sql.exec(sql1)
sql.fetch(sql1)
sql.break(sql1)
sql.close(sql1)
gives out a mistake. and it is necessary to round to summation. HELP!

Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>