Subject | Re: [firebird-support] Optimisation Question |
---|---|
Author | Alexandre Benson Smith |
Post date | 2004-08-05T20:45:23Z |
Carlos H. Cantu wrote:
I think he just mistyped the table name
from TABLE_A
inner JOIN TABLE_B on TABLE_A.joinfield = TABLE_B.joinfield
^
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda.
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br
>Am I too tired or the second SQL you posted is invalid ?Carlos,
>
>Anyway, take care since in FB subqueries can be very slow. You must,
>always as possible, write your SQL using JOINs.
>
>Carlos
>http://www.warmboot.com.br
>FireBase - http://www.FireBase.com.br
>
>
>
>
I think he just mistyped the table name
>d> SELECT TABLE_A.field1SELECT TABLE_A.field1
>d> from TABLE_A
>d> inner JOIN TABLE_A on TABLE_A.joinfield = TABLE_B.joinfield
>
>
from TABLE_A
inner JOIN TABLE_B on TABLE_A.joinfield = TABLE_B.joinfield
^
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda.
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br