Subject | Re: Why would left outer join return FEWER records? |
---|---|
Author | Adam |
Post date | 2006-08-22T06:32:10Z |
--- In firebird-support@yahoogroups.com, "Joe Martinez" <joe@...>
wrote:
on syntax checking and would tell you something like:
---
SQL error code = -204
Ambiguous field name between table VENDORPRODUCTS and table PRODUCTS
storeid
---
Are you using an older version or different dialect?
You have just made a very good case in favour of this
strictness.Count yourself lucky that you discovered the error now
rather than later.
Adam
wrote:
>table
> Oops, nevermind. I figured out the reason. The VENDORPRODUCTS
> has a STOREID field as well, and so I guess the unqualified STOREIDin
> the the "where" clause was causing it to throw out completely therows
> where the "joined" STOREID from VENDORPRODUCTS was null. I changedThat surprises me. Normally Firebird (1.5 dialect 3) is pretty strict
> the "where" clause to say A.storeid, and that fixed it.
>
> I thought I was losing my mind for a minute!
on syntax checking and would tell you something like:
---
SQL error code = -204
Ambiguous field name between table VENDORPRODUCTS and table PRODUCTS
storeid
---
Are you using an older version or different dialect?
You have just made a very good case in favour of this
strictness.Count yourself lucky that you discovered the error now
rather than later.
Adam