早教吧作业答案频道 -->其他-->
oracle中tax就下面这个程序中得taxc我看不懂请高人指点.selectround(sum((a.amount+a.discamount)*(1+c.vatperc/100)),2)销售金额,count(distincta.tillno||a.invoiceno)来客fromshtbinvoicelinea,shtbinvoiceb,taxcwhere
题目详情
oracle中tax 就下面这个程序中得tax c我看不懂请高人指点.
select round(sum((a.amount+a.disc_amount)*(1+c.vat_perc/100)),2) 销售金额,count(distinct a.till_no||a.invoice_no) 来客
from sh_tb_invoice_line a,sh_tb_invoice b,tax c
where a.till_no=b.till_no
and a.invoice_no=b.invoice_no
and a.vat_no=c.vat_no
and a.run_date=to_date(&日期,'yyyymmdd')
select round(sum((a.amount+a.disc_amount)*(1+c.vat_perc/100)),2) 销售金额,count(distinct a.till_no||a.invoice_no) 来客
from sh_tb_invoice_line a,sh_tb_invoice b,tax c
where a.till_no=b.till_no
and a.invoice_no=b.invoice_no
and a.vat_no=c.vat_no
and a.run_date=to_date(&日期,'yyyymmdd')
▼优质解答
答案和解析
tax是表名或者是视图名 tax c的意思是给tax起个别名叫C
看了 oracle中tax就下面这...的网友还看了以下:
f(x)是以T为周期的函数,试求函数f(ax+b)的周期f(ax+b+T)=f(ax+b)之中,a 2020-05-12 …
matlab解决符号方程问题刚学MATLAB没几天,下面这个符号方程问题解不了,请高手赐教!ff= 2020-05-16 …
纵横字谜之英语暑假作业题(s)(o)(r)(r)(n)(g)(r)(e))(a)(k)(k)(e) 2020-06-06 …
下列关于淋巴细胞的叙述,不正确的是()A.效应B细胞与效应T细胞一定分别来源于是B细胞和T细胞B. 2020-07-01 …
变限积分[a,b]上的积分∫[f(x+h)-f(x)]dx令x+h=t,那原式=∫[a+h,b+h 2020-07-11 …
我发现傅里叶变换的巨大错误!先看两条结论:1.x(t)*h(t)的傅里叶级数系数为T·a(k)·b 2020-07-13 …
C语言指针交换值问题#includeintfun(int*a,int*b){int*t;*t=*a 2020-07-23 …
如图,下列各式能够表示图中阴影部分的面积的是()①at+(b-t)t;②at+bt-t2;③ab- 2020-07-29 …
答对者高分酬谢!有关随机信号分析(随机过程)的题目已知随机过程X(t)=A+B,A,B皆为已知的随 2020-08-03 …
下列关于体液免疫的叙述,不正确的是()A.B细胞的激活信号可来自于抗原或者T细胞B.T细胞释放的淋巴 2020-11-03 …