Skip to main content



      Home
Home » Archived » BIRT » Displaying SQL data in a horizontal format
Displaying SQL data in a horizontal format [message #104939] Thu, 05 January 2006 13:30 Go to next message
Eclipse UserFriend
Originally posted by: jake.westviewclose.co.uk

All,

I'm currently building a report in which I have a table of data values
that I want to display on the report. This is very simple when the
values are to go in a vertical (ie down the page) direction, as I write
a simple SQL query and use a table to display the data.

However, I want these values to be written horizontally (ie across the
page instead). There are a specified maximum amount of values (so I
won't exceed page width).

For example

Current report :-

2.0
1.5
1.4
1.3
1.2
1.1
1.08
1.04
1.03
1.02
1.01






Desired report format

2.0 1.5 1.4 1.3 1.2 1.1 1.08 1.04 1.03 1.02 1.01


It should be obvious, but i've been going round and round in circles all
day...

Please can anyone advise if a) it is possible... b) if they could
provide a solution, or a suggested method?

Thank you kindly in advance for any help.

Jake
Re: Displaying SQL data in a horizontal format [message #105399 is a reply to message #104939] Fri, 06 January 2006 06:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jake.westviewclose.co.uk

Hi,

Is anyone able to help with the attached. If anyone could advise even if
the requirement is possible it would be a great help? - I'm going to
start rebuilding all of the data into a ridiculous single row format
later today, which will be a reasonable amount of work and incredibly
inefficient, but at the mo I can't see any other way of getting round
the problem.

Please if anyone can help it would be most appreciated.

Thanks

jake

Jake Day wrote:
> All,
>
> I'm currently building a report in which I have a table of data values
> that I want to display on the report. This is very simple when the
> values are to go in a vertical (ie down the page) direction, as I write
> a simple SQL query and use a table to display the data.
>
> However, I want these values to be written horizontally (ie across the
> page instead). There are a specified maximum amount of values (so I
> won't exceed page width).
>
> For example
>
> Current report :-
>
> 2.0
> 1.5
> 1.4
> 1.3
> 1.2
> 1.1
> 1.08
> 1.04
> 1.03
> 1.02
> 1.01
>
>
>
>
>
>
> Desired report format
>
> 2.0 1.5 1.4 1.3 1.2 1.1 1.08 1.04 1.03 1.02 1.01
>
>
> It should be obvious, but i've been going round and round in circles all
> day...
>
> Please can anyone advise if a) it is possible... b) if they could
> provide a solution, or a suggested method?
>
> Thank you kindly in advance for any help.
>
> Jake
Re: Displaying SQL data in a horizontal format [message #105455 is a reply to message #105399] Fri, 06 January 2006 07:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sasa.sasa.com

Maybe you want a cross-tab Report??
I think this feature is not ready in Birt yet...
Someone knows when Birt will have this feature??
Re: Displaying SQL data in a horizontal format [message #105906 is a reply to message #105455] Sat, 07 January 2006 12:30 Go to previous messageGo to next message
Eclipse UserFriend
I think you can use the decode function of oracle to get this functionality
(if you are using oracle). Decode transposes the data.

Regards
Dwarakanath

"daniel" <sasa@sasa.com> wrote in message
news:57207b334af08548107ff868b3007c51$1@www.eclipse.org...
> Maybe you want a cross-tab Report??
> I think this feature is not ready in Birt yet...
> Someone knows when Birt will have this feature??
>
Re: Displaying SQL data in a horizontal format [message #105960 is a reply to message #105906] Sat, 07 January 2006 18:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jake.westviewclose.co.uk

Dwarakanath / Daniel,

Thanks for your responses...sadly I'm using MySQL, not Oracle - and yes
I believe that a Cross-tab report would fulfil my needs, but as you
state Daniel, I don't think this is a feature yet.

My only option so far is to write a small program that selects the 50
values that I need from multiple rows and inserts them into the same,
single row.

Its an incredibly inefficient way to work, both storage and
processing-wise, and i'd have hoped that with a product like BIRT there
would have been a smarter way around it. (i still suspect that there
might be, i just haven't discovered it yet!).

However, the search goes on, and i'm hoping that someone may provide the
key to the answer before I write one of the more embarrassing pieces
of code of my programming life ;)

thanks again

jake
Dwarakanath wrote:
> I think you can use the decode function of oracle to get this functionality
> (if you are using oracle). Decode transposes the data.
>
> Regards
> Dwarakanath
>
> "daniel" <sasa@sasa.com> wrote in message
> news:57207b334af08548107ff868b3007c51$1@www.eclipse.org...
>
>>Maybe you want a cross-tab Report??
>>I think this feature is not ready in Birt yet...
>>Someone knows when Birt will have this feature??
>>
>
>
>
Re: Displaying SQL data in a horizontal format [message #106549 is a reply to message #105960] Tue, 10 January 2006 02:06 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jake

You might want to take a look at this and do some R&D. Maybe it will help

http://www.ispirer.com/doc/sqlways38/Output/SQLWays-1-041.ht ml

Regards
Dwarakanath

"Jake Day" <jake@westviewclose.co.uk> wrote in message
news:43C05150.7060900@westviewclose.co.uk...
> Dwarakanath / Daniel,
>
> Thanks for your responses...sadly I'm using MySQL, not Oracle - and yes I
> believe that a Cross-tab report would fulfil my needs, but as you state
> Daniel, I don't think this is a feature yet.
>
> My only option so far is to write a small program that selects the 50
> values that I need from multiple rows and inserts them into the same,
> single row.
>
> Its an incredibly inefficient way to work, both storage and
> processing-wise, and i'd have hoped that with a product like BIRT there
> would have been a smarter way around it. (i still suspect that there might
> be, i just haven't discovered it yet!).
>
> However, the search goes on, and i'm hoping that someone may provide the
> key to the answer before I write one of the more embarrassing pieces of
> code of my programming life ;)
>
> thanks again
>
> jake
> Dwarakanath wrote:
>> I think you can use the decode function of oracle to get this
>> functionality (if you are using oracle). Decode transposes the data.
>>
>> Regards
>> Dwarakanath
>>
>> "daniel" <sasa@sasa.com> wrote in message
>> news:57207b334af08548107ff868b3007c51$1@www.eclipse.org...
>>
>>>Maybe you want a cross-tab Report??
>>>I think this feature is not ready in Birt yet...
>>>Someone knows when Birt will have this feature??
>>>
>>
>>
Re: Displaying SQL data in a horizontal format [message #121690 is a reply to message #104939] Tue, 31 January 2006 10:56 Go to previous message
Eclipse UserFriend
Originally posted by: m00nw01f.hotmail.com

Did someone else manage to resolve this?
thanks
Previous Topic:Calculating totals and custom functions
Next Topic:Trying to get the pooled db connection working
Goto Forum:
  


Current Time: Wed Jul 16 05:50:15 EDT 2025

Powered by FUDForum. Page generated in 0.58091 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top