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 > Multiset

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-26-08, 06:31
Gayathri.Seshadri Gayathri.Seshadri is offline
Registered User
 
Join Date: Apr 2008
Posts: 4
Multiset

Hi,

I used a query with multiset
select
col1,col2,ilx.cnt -NVL((select count(*) from table1 x1
where x1.col1=x2.col1
and x1.col2=x2.col2
and x1.rowid > x2.rowid),0) l_nbr
from invoice@${srcinstance}:table2 x2
join table(multiset (select col1,col2,col3,count(*) as cnt
from table4 group by col1,col2,col3)) as ilx
on(ilx.col1=il.col1
and ilx.col1=il.col1
and ilx.col1=il.col1)
this same query,i was able to execute in informix version 9.4 with IUNLOAD OPTION
“INFORMIX-SQL Version 9.40.FC6W1”
Copyright IBM Corporation 1996, 2004


but the same query said "Not A Valid Select!!!" error when i executed the query in informix version 10.0
“INFORMIX-SQL Version 10.00.FC6WM2”
Copyright IBM Corporation 1996, 2006


why did this happen and what might be the equivalent query in 10.0 version
Can i use an inline query with iunload command and use multiset also in the 10.0 version.
Reply With Quote
  #2 (permalink)  
Old 08-26-08, 11:25
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
execute in the dbaccess, it will show at exactly point the syntax error occur...
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
  #3 (permalink)  
Old 08-26-08, 11:40
Gayathri.Seshadri Gayathri.Seshadri is offline
Registered User
 
Join Date: Apr 2008
Posts: 4
Thanks so much for the reply.
The problem is with the (-) operator.
In one of the informix version 9.4 the query is running fine with the iunload.
But the same query with iunload utility is not running fine with 10.0.
Reply With Quote
  #4 (permalink)  
Old 08-26-08, 15:46
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
Running in dbaccess, what exactly the error message ?
What error number?

If possible, put the create table of the each table here, than we can try simulate the problem;
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
  #5 (permalink)  
Old 08-26-08, 23:48
Gayathri.Seshadri Gayathri.Seshadri is offline
Registered User
 
Join Date: Apr 2008
Posts: 4
there is no specific error number it just said "not a valid select!!!" no error number. but i can note that its bcoz of a minus symbol (-)
Reply With Quote
  #6 (permalink)  
Old 08-27-08, 07:56
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
When executed in dbaccess , any error return a message number .
ALL errors on Informix are classified with a number.
You can see this with command "finderr" .
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
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