Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
create cursor temp01 (proddate d, prodref c(7), prodqty n(6,0), prodprice n(6,2), prodvalue n(10,2))
index on proddate tag proddate
for i = -100 to -50
insert into temp01 (proddate, prodref, prodqty, prodprice, prodvalue) ;
values (date()+i, "PROD"+padl(i,3,"0"), 2, 2.50, 5.00)
insert into temp01 (proddate, prodref, prodqty, prodprice, prodvalue) ;
values (date()+i+365, "PROD"+padl(i,3,"0"), 1, 1.50, 1.50)
insert into temp01 (proddate, prodref, prodqty, prodprice, prodvalue) ;
values (date()+i+365+365, "PROD"+padl(i,3,"0"), 3, 3.00, 9.00)
endfor
select year(proddate) as prodyear, sum(prodqty) as qtytot, sum(prodvalue) as valtot from temp01 group by prodyear