ZestyBeanz Technologies Pvt Ltd
4th Floor, Nila, Technopark
Thiruvananthapuram,
India – 695581
Phone: +91 471 4063254
Fax : +91 471 2700171
ZestyBeanz Technologies Pvt Ltd
61/3236, Manikkath Cross Road
Ravipuram, Kochi, India - 682016
Phone: +91 484 4063254
Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222
Mobile: +971-52-7553466
ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445
Hi Prajul T. Thanks for your
Hi Prajul T.
Thanks for your help.
I am working with ireport and crosstab and right now i have a issue with a final report.
I need see in each column, the months of year but in order, for example: january, february, march, and so on, but I can to display that columns but in disorder.
The query was written in postgres:
with client as
(
select codclient, sum(total) as totalc
from v_sales
group by codcliente
order by totalc desc
)
select
vc.*,
cp.name as periodname,
date_part('year',cp.enddate) as anio,
date_part('month',cp.enddate) as numeromes,
date_part('month',cp.enddate) || '-' || initcap(fnc_period(cp.startdate, 1000000) ) as namecomplet ,
cp.periodno,
tc.totalc,
cp.enddate
from v_sales vc
inner join c_period cp
on vc.c_period_id = cp.c_period_id
inner join client tc
on tc.codcliente = vc.codcliente
order by namecomplet asc, anio asc;
Thanks a lot...!
Omar