#1  
Old 31st October 2006, 03:08 AM
JC Boggio
 
Posts: n/a
Default How do JOINs really work ?

Hi, I have this (simplified) query :

SELECT (select count(*) from titresupport s2 where s2.idsupport=s.id) as tottitres
FROM castings c
JOIN supports s ON (c.idsupport=s.id)
JOIN ventes v ON (v.idsupport=s.id)
JOIN distributeurs d ON (d.iddistributeur=v.iddistributeur)
LEFT JOIN canauxvente k1 ON (k1.idcontrat=c.idcontrat AND k1.id_pays=v.id_pays AND k1.idtypedistributeur=d.idtypedistributeur)
WHERE c.idcontrat=:idcontrat

But EM/NxServer complain on "unable to resolve the identifier "s"."id"

Now, if I remove the "LEFT JOIN" line it works. Why ?

This is with NXServer 2.0599r2
I post the data to binary.
  #2  
Old 31st October 2006, 06:06 AM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: How do JOINs really work ?

> Now, if I remove the "LEFT JOIN" line it works. Why ?

Bug. Most likely same/similar to 2255. Issue# 2258

--

Hannes Danzl [NexusDB Developer]
Newsgroup archive at http://www.tamaracka.com/search.htm
  #3  
Old 31st October 2006, 07:08 AM
JC Boggio
 
Posts: n/a
Default Re: How do JOINs really work ?

Hannes Danzl[NDD] a écrit :
>> Now, if I remove the "LEFT JOIN" line it works. Why ?

>
> Bug. Most likely same/similar to 2255. Issue# 2258


Thanks.


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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LEFT OUTER JOINS Dennis Landi nexusdb.public.support.sql 20 8th April 2006 01:05 AM
Discussion: Optimization of outer joins Ole Willy Tuv nexusdb.public.support.sql 27 18th February 2006 10:24 AM
Joins in different ways Anders Gustavsson nexusdb.public.support.sql 6 13th July 2005 07:01 PM
Re: Support for heterogeneous joins or workaround Jan-Erik Johansen nexusdb.public.support.sql 0 30th March 2004 10:11 AM
Two LEFT JOINS in one SELECT Jens Burmester nexusdb.public.support.sql 6 10th October 2003 01:00 AM


All times are GMT +11. The time now is 03:11 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.