If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Nested Select

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-04, 14:19
Chancetribe Chancetribe is offline
Registered User
 
Join Date: Sep 2004
Posts: 13
Nested Select

Is it possible to use a nested select in the from clause of a select statement in Informix? Below is an example of what we are trying to do:

select sum(col1) from
(Select col1, col2 from table1)

Jeremy
Reply With Quote
  #2 (permalink)  
Old 10-05-04, 14:51
fprose fprose is offline
Registered User
 
Join Date: Apr 2003
Location: Phoenix, AZ
Posts: 177
select sum(col1) from table (multiset(Select col1, col2 from table1))
__________________
Fred Prose
Reply With Quote
  #3 (permalink)  
Old 10-05-04, 17:54
Chancetribe Chancetribe is offline
Registered User
 
Join Date: Sep 2004
Posts: 13
Talking

That is exactly what we needed. Thanks for the quick response.

Jeremy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On