|
|
select point,year,sys_enterpriseid,sum(amount) amount from (SELECT 0+CAST(if(isclose,t1.price*t1.deliedqty,amount) AS CHAR) amount, QUARTER(t2.billdate) point,YEAR(t2.billdate) year,t2.sys_enterpriseid FROM sa_orderitems t1
|
|
select point,year,sys_enterpriseid,sum(amount) amount from (SELECT 0+CAST(if(isclose,t1.price*t1.deliedqty,amount) AS CHAR) amount, QUARTER(t2.billdate) point,YEAR(t2.billdate) year,t2.sys_enterpriseid FROM sa_orderitems t1
|
|
|
GROUP BY point,year,sys_enterpriseid
|
|
GROUP BY point,year,sys_enterpriseid
|