× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
While I am not sure this is close to your problem, it might give you some
ideas. The IDUG Solutions Guide for October 2001 (not posted on the web site
yet, V8 #3 www.idug.org) has an interesting approach to cartesian products
that sort of sounds like what you are trying to do. If you can not locate a
copy, send me an email off-line at hweatherly@dlis.dla.mil with a fax number
and I will send it to you.

-----Original Message-----
From: Hatzenbeler, Tim [mailto:thatzenbeler@clinitech.net]
Sent: Tuesday, November 27, 2001 1:35 PM
To: 'midrange-l@midrange.com'
Subject: Dynamic SQL Help (cross-tab)....


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]

I have been racking my brain on this for the past few days, and have scanned
the net for help, but I still have not come up with a solution that I can
grasp yet...

Does anybody know how I would create, an SQL program that would allow me to
create a multi level cross-tab result set?

columns could be layered by  : Manager and then Department and then
Employee...
And the rows would be : Work Area and then Project
With a sum (of) hours at the intersection...

This seems to entail, reading and creating a cursor for distinct columns,
and then process the distinct rows, for a given where clause...

But for the life of me, I can't figure out how to best code this...  Any
body out there have any ideas?

p.s., and here the clincher,  I need the columns to be dynamically read and
created from the data...

Thanks, tim

If you can help, I can work with RPGSQL or JAVA or Stored Procedures....
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.