Unix Technical Forum

Re: SQL construct not supported in informix ?

This is a discussion on Re: SQL construct not supported in informix ? within the Informix forums, part of the Database Server Software category; --> vk02720@my-deja.com (vk02720) wrote in message news:<4d814faa.0307170740.3e983552@posting.google. com>... > The following SQL construct does not work in Informix 7.3 > ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 06:13 PM
Kristofer Andersson
 
Posts: n/a
Default Re: SQL construct not supported in informix ?

vk02720@my-deja.com (vk02720) wrote in message news:<4d814faa.0307170740.3e983552@posting.google. com>...
> The following SQL construct does not work in Informix 7.3
> select a,b from
> (select col1 a, col2 b from mytable)
>
> This works in Oracle.
> Is this part of SQL standard or an Oracle extension ?
>
> TIA



You can achieve the same result by doing: select a, b from
Table(Multiset(select col1 as a, col2 as b from mytable)) as foo

However, some other databases would try to expand the subquery and
find more efficient joins to table in the outer query if there are
any. Informix won't.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:42 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com