A developer approached us today with this and wanted to know if it was possible to create something like this in Informix - anyone experience it before?
http://stackoverflow.com/questions/715350/show-a-one-to-many-relationship-as-2-columns-1-unique-row-id-comma-separate/716655#716655
_______________________________________________
Informix-list mailing list
Inform...@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list
just wondering if anyone had done it as a function/stored proc itself versus an aggregate based over a series of functions....Thanks
_______________________________________________
Informix-list mailing list
Inform...@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list
I was wondering about CONNECT BY - what is the solution using that?
On Fri, Aug 9, 2013 at 12:34 PM, <tom...@gmail.com> wrote:
I was wondering about CONNECT BY - what is the solution using that?
What makes you think CONNECT BY might be part of a solution? You wanted an aggregate function (the summary of a set of values within a group — the summary being a comma-separated list of the values within the group). CONNECT BY is for traversing hierarchical data structures; it does not, of itself, do any aggregation.
What is your real requirement?
(For anyone joining the conversation late and/or unthreaded, the question relates to GROUP_CONCAT and http://stackoverflow.com/questions/715350/.)
--Jonathan Leffler <jonathan...@gmail.com> #include <disclaimer.h>
Guardian of DBD::Informix - v2013.0521 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be amused."
_______________________________________________
Informix-list mailing list
Inform...@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list
RegardsI'm used to see very weird uses of CONNECT BY to do things far from obvious (specially in Oracle discussions).Jonathan,If I didn't confuse myself, CONNECT BY was mentioned in the stackoverflow discussion as a possible solution. But AFAIR no example was given.
On Fri, Aug 9, 2013 at 10:54 PM, Jonathan Leffler <jonathan...@gmail.com> wrote:
On Fri, Aug 9, 2013 at 12:34 PM, <tom...@gmail.com> wrote:
I was wondering about CONNECT BY - what is the solution using that?
What makes you think CONNECT BY might be part of a solution? You wanted an aggregate function (the summary of a set of values within a group — the summary being a comma-separated list of the values within the group). CONNECT BY is for traversing hierarchical data structures; it does not, of itself, do any aggregation.
What is your real requirement?
(For anyone joining the conversation late and/or unthreaded, the question relates to GROUP_CONCAT and http://stackoverflow.com/questions/715350/.)
--Jonathan Leffler <jonathan...@gmail.com> #include <disclaimer.h>
Guardian of DBD::Informix - v2013.0521 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be amused."
_______________________________________________
Informix-list mailing list
Inform...@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list
--
Fernando Nunes
Portugal
http://informix-technology.blogspot.com
My email works... but I don't check it frequently...
Hi Fernando,Indeed, CONNECT BY was mentioned in another answer on Stack Overflow. However, there was no description or discussion or example of how it might be used, and I'm a tad sceptical that it is relevant. I'm willing to be shown that it can be used — in Oracle or Informix – but I'm far from convinced that it does the job that GROUP_CONCAT does.
On Fri, Aug 9, 2013 at 3:41 PM, Fernando Nunes <domus...@gmail.com> wrote:
RegardsI'm used to see very weird uses of CONNECT BY to do things far from obvious (specially in Oracle discussions).Jonathan,If I didn't confuse myself, CONNECT BY was mentioned in the stackoverflow discussion as a possible solution. But AFAIR no example was given.
On Fri, Aug 9, 2013 at 10:54 PM, Jonathan Leffler <jonathan...@gmail.com> wrote:
On Fri, Aug 9, 2013 at 12:34 PM, <tom...@gmail.com> wrote:
I was wondering about CONNECT BY - what is the solution using that?
What makes you think CONNECT BY might be part of a solution? You wanted an aggregate function (the summary of a set of values within a group — the summary being a comma-separated list of the values within the group). CONNECT BY is for traversing hierarchical data structures; it does not, of itself, do any aggregation.
What is your real requirement?
(For anyone joining the conversation late and/or unthreaded, the question relates to GROUP_CONCAT and http://stackoverflow.com/questions/715350/.)
--Jonathan Leffler <jonathan...@gmail.com> #include <disclaimer.h>
Guardian of DBD::Informix - v2013.0521 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be amused."
_______________________________________________
Informix-list mailing list
Inform...@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list
--
Fernando Nunes
Portugal
http://informix-technology.blogspot.com
My email works... but I don't check it frequently...
--Jonathan Leffler <jonathan...@gmail.com> #include <disclaimer.h>
Guardian of DBD::Informix - v2013.0521 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be amused."
RegardsBut again... I have some other things waiting before that.Besides all this, I would like to investigate SETs as I think it may help with some of the problems around your solution.Personally I've used CONNECT BY "for test data generation". But to be honest I copied it from forums of other database users. Besides that I did pass my eyes over uses of CONNECT BY that made me thinking I know nothing about it!Hopefully Jerry may help us.I will not argue. I don't know how to use it for that, nor if it's possible. And I'm with other interesting things to do now (you may be interested in my next blog article, as it is based around Google authenticator ;) ).Meanwhile, I think we can go back to this on August 28, assuming the OP can wait until then or use your solution. The reason why I mention Augst 28 is because it's after this:
https://events.na.collabserv.com/portal/wippages/register.php?id=2aba8f8a55&l=en-US
On Fri, Aug 9, 2013 at 11:47 PM, Jonathan Leffler <jonathan...@gmail.com> wrote:
Hi Fernando,Indeed, CONNECT BY was mentioned in another answer on Stack Overflow. However, there was no description or discussion or example of how it might be used, and I'm a tad sceptical that it is relevant. I'm willing to be shown that it can be used — in Oracle or Informix – but I'm far from convinced that it does the job that GROUP_CONCAT does.
On Fri, Aug 9, 2013 at 3:41 PM, Fernando Nunes <domus...@gmail.com> wrote:
RegardsI'm used to see very weird uses of CONNECT BY to do things far from obvious (specially in Oracle discussions).Jonathan,If I didn't confuse myself, CONNECT BY was mentioned in the stackoverflow discussion as a possible solution. But AFAIR no example was given.
On Fri, Aug 9, 2013 at 10:54 PM, Jonathan Leffler <jonathan...@gmail.com> wrote:
On Fri, Aug 9, 2013 at 12:34 PM, <tom...@gmail.com> wrote:
I was wondering about CONNECT BY - what is the solution using that?
What makes you think CONNECT BY might be part of a solution? You wanted an aggregate function (the summary of a set of values within a group — the summary being a comma-separated list of the values within the group). CONNECT BY is for traversing hierarchical data structures; it does not, of itself, do any aggregation.
What is your real requirement?
(For anyone joining the conversation late and/or unthreaded, the question relates to GROUP_CONCAT and http://stackoverflow.com/questions/715350/.)
--Jonathan Leffler <jonathan...@gmail.com> #include <disclaimer.h>
Guardian of DBD::Informix - v2013.0521 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be amused."
_______________________________________________
Informix-list mailing list
Inform...@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list
--
Fernando Nunes
Portugal
http://informix-technology.blogspot.com
My email works... but I don't check it frequently...
--Jonathan Leffler <jonathan...@gmail.com> #include <disclaimer.h>
Guardian of DBD::Informix - v2013.0521 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be amused."
--
Fernando Nunes
Portugal
http://informix-technology.blogspot.com
My email works... but I don't check it frequently...