Group by on two columns does not seem to order 2nd column

Stimulsoft Reports.PHP discussion
Post Reply
fox_224
Posts: 21
Joined: Tue Oct 05, 2010 7:13 am
Location: U.S.A.

Group by on two columns does not seem to order 2nd column

Post by fox_224 »

Hi Vladimir,

I have a simple mysql script like:

select column1,column2 from table group by column1, column2

There are several column2 records for each column1.

However, in the report, it only sorts by column1 and the column2 is not in order. Any reason why?

Regards,
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Group by on two columns does not seem to order 2nd column

Post by Alex K. »

Hello,

Please send us your report with sample data for analysis.

Thank you.
fox_224
Posts: 21
Joined: Tue Oct 05, 2010 7:13 am
Location: U.S.A.

Group by on two columns does not seem to order 2nd column

Post by fox_224 »

HI Alelsev,
Thank you for responding.
I have a group band which contains the column1 value and in the data band I have the column2 values under it. But I think I have found the solution. In the group band, I have the option sort (none, ascending, descending). By default it is ascending. But I have already grouped my data so there is no need to re-sort it again. I selected None and the 2nd column is ok now.
Regards,
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Group by on two columns does not seem to order 2nd column

Post by Ivan »

Hello,

Let us know if you need any additional help.

Thank you.
Post Reply