India

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

  UAE

Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222​
Mobile: +971-52-7553466

  Germany​

ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445

Reply to comment

Contact Form


omarantonio's picture

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

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo], [[foo]]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.