Subject | RE: [firebird-support] FB faster than IB 5.6 |
---|---|
Author | Leyne, Sean |
Post date | 2007-10-08T17:45:23Z |
Tom,
FROM
MY_TABLE_1 T1
JOIN MY_TABLE_2 T2 ON T1.KEY_FIELD = T2.KEY_FIELD
WHERE
General Note: Using an alias is a good practice to use all the time.
Sean
> In addition, you need to qualify every field in the statement of multiThis is only required where there are ambiguous references.
> table selects.
> Make sure the TABLE_NAME is included as part of the field.It is not necessary to use the *Table Name*, but an *alias* as in:
FROM
MY_TABLE_1 T1
JOIN MY_TABLE_2 T2 ON T1.KEY_FIELD = T2.KEY_FIELD
WHERE
General Note: Using an alias is a good practice to use all the time.
>This is not necessary in the statement is not ambiguous.
> WHERE
> ZIP_CODE = '12345'
>
> may not use an index where
>
> WHERE
> ADDRESS.ZIP_CODE = '12345'
Sean