dbTalk Databases Forums  

How to get rid of MULTISET in DB queries.

comp.databases.informix comp.databases.informix


Discuss How to get rid of MULTISET in DB queries. in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
meenu sharma
 
Posts: n/a

Default How to get rid of MULTISET in DB queries. - 06-17-2010 , 06:47 AM






Hi,

I have a requirement to remove MULTISET from the SQL queries.

Please suggest some alternative ways in which I can implement my queries
without MULTISET.

Any help will be greatly appreciated.

Thanks and Regards,
Meenu Thapliyal

Reply With Quote
  #2  
Old   
Art Kagel
 
Posts: n/a

Default Re: How to get rid of MULTISET in DB queries. - 06-17-2010 , 11:51 AM






Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
IIUG Board of Directors (art (AT) iiug (DOT) org)

Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Advanced DataTools, the IIUG, nor any other
organization with which I am associated either explicitly, implicitly, or by
inference. Neither do those opinions reflect those of other individuals
affiliated with any entity with which I am affiliated nor those of the
entities themselves.



On Thu, Jun 17, 2010 at 7:47 AM, meenu sharma <meenu.thapliyal (AT) gmail (DOT) com>wrote:

Quote:
Hi,

I have a requirement to remove MULTISET from the SQL queries.

Please suggest some alternative ways in which I can implement my queries
without MULTISET.

Any help will be greatly appreciated.

Thanks and Regards,
Meenu Thapliyal

_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list


Reply With Quote
  #3  
Old   
Art Kagel
 
Posts: n/a

Default Re: How to get rid of MULTISET in DB queries. - 06-17-2010 , 11:55 AM



What are you using MULTISET for? If you are using it to simiulate derived
tables as in SELECT ... FROM TABLE(MULTISET(SELECT....)), and you are
running 11.50, you can just use derived tables as in: SELECT ... FROM
(SELECT ...), though I can think of VERY few queries that are written using
derived tables that couldn't be rewritten as a simple join! And they
usually perform better that way. The only derived table queries I know of
that can't be rewritten as a join are those where the subquery returns
aggregates and you want to join the aggregates to non-aggregated rows or
aggregates at different levels.

Art

Advanced DataTools (www.advancedatatools.com)
IIUG Board of Directors (art (AT) iiug (DOT) org)

Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Advanced DataTools, the IIUG, nor any other
organization with which I am associated either explicitly, implicitly, or by
inference. Neither do those opinions reflect those of other individuals
affiliated with any entity with which I am affiliated nor those of the
entities themselves.



On Thu, Jun 17, 2010 at 7:47 AM, meenu sharma <meenu.thapliyal (AT) gmail (DOT) com>wrote:

Quote:
Hi,

I have a requirement to remove MULTISET from the SQL queries.

Please suggest some alternative ways in which I can implement my queries
without MULTISET.

Any help will be greatly appreciated.

Thanks and Regards,
Meenu Thapliyal

_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list


Reply With Quote
  #4  
Old   
meenu sharma
 
Posts: n/a

Default Re: How to get rid of MULTISET in DB queries. - 06-18-2010 , 09:20 PM



Thanks Art !!

Yeah the queries are in thhis form only. Thanks for your suggestion, I will
try to use Join for these queries.

Thanks for your reply.

Regards,
Meenu

On Thu, Jun 17, 2010 at 10:25 PM, Art Kagel <art.kagel (AT) gmail (DOT) com> wrote:

Quote:
What are you using MULTISET for? If you are using it to simiulate derived
tables as in SELECT ... FROM TABLE(MULTISET(SELECT....)), and you are
running 11.50, you can just use derived tables as in: SELECT ... FROM
(SELECT ...), though I can think of VERY few queries that are written using
derived tables that couldn't be rewritten as a simple join! And they
usually perform better that way. The only derived table queries I know of
that can't be rewritten as a join are those where the subquery returns
aggregates and you want to join the aggregates to non-aggregated rows or
aggregates at different levels.

Art


Advanced DataTools (www.advancedatatools.com)
IIUG Board of Directors (art (AT) iiug (DOT) org)

Disclaimer: Please keep in mind that my own opinions are my own opinions
and do not reflect on my employer, Advanced DataTools, the IIUG, nor any
other organization with which I am associated either explicitly, implicitly,
or by inference. Neither do those opinions reflect those of other
individuals affiliated with any entity with which I am affiliated nor those
of the entities themselves.



On Thu, Jun 17, 2010 at 7:47 AM, meenu sharma <meenu.thapliyal (AT) gmail (DOT) com>wrote:

Hi,

I have a requirement to remove MULTISET from the SQL queries.

Please suggest some alternative ways in which I can implement my queries
without MULTISET.

Any help will be greatly appreciated.

Thanks and Regards,
Meenu Thapliyal

_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.