dbTalk Databases Forums  

[Info-Ingres] query with a sequence using a distinct in a subclausefails...Why?

comp.databases.ingres comp.databases.ingres


Discuss [Info-Ingres] query with a sequence using a distinct in a subclausefails...Why? in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin Bowes
 
Posts: n/a

Default [Info-Ingres] query with a sequence using a distinct in a subclausefails...Why? - 05-27-2010 , 09:14 AM






Hi All,



I have a query (with a deliberate Cart-Prod)...

SELECT

test_seq.nextval AS id ,o.id AS id_domain ,u.username AS
username

FROM o, u

WHERE u.username NOT IN ( SELECT DISTINCT username FROM p )

;



This produces E_US18AF Next value/current value sequence operators used
in incorrect context.



If I remove the distinct clause the query works OK. If I recode it to
use a left outer join the code works OK.



I've seen this on II 9.2.0 (a64.lnx/143)NPTL + p13767.



Martin Bowes

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.