Subject | RE: [firebird-support] FB2 Ambiguity Rules |
---|---|
Author | Leyne, Sean |
Post date | 2007-05-16T16:21:36Z |
James,
'intelligent' to handle cases as you note above.
The reality is that the example is not an ambiguous statement, since all
the 'select' columns are found only in a single table from the select.
Sean
> I was testing out Ramil's XLSQLRep component which had a demo with SQLrules
> for the EMPLOYEE db specified thus:
>
> select
> FULL_NAME, PHONE_EXT, HIRE_DATE, SALARY, JOB_TITLE
> from
> EMPLOYEE_PROJECT EP
> JOIN EMPLOYEE E ON E.EMP_NO=EP.EMP_NO
> JOIN JOB J ON J.JOB_CODE=E.JOB_CODE
> and J.JOB_GRADE=E.JOB_GRADE
> and J.JOB_COUNTRY=E.JOB_COUNTRY
> order by FULL_NAME
>
> .. and it worked... in Firebird 2.01! I was taken aback because
> according to my understanding this "violates" the strict ambiguity
> imposed in FB2 because some fields are fully qualified (alias.field)and
> others are not... or maybe the rule applies selectively on either sideFollowing many complaints the ambiguity logic was made more
> of a JOIN?
'intelligent' to handle cases as you note above.
The reality is that the example is not an ambiguous statement, since all
the 'select' columns are found only in a single table from the select.
Sean