Subject | RE: Odp: [firebird-support] Indexes on subquery |
---|---|
Author | Umberto Masotti |
Post date | 2013-11-29T17:10:50Z |
Hi all,
Svein Erling Tysvær <svein.erling.tysvaer@...> ha scritto:
SELECT id FROM TEST T JOIN SUBQUERYTABLE SQ ON (T.id2=SQ.id2)
Are there any reward to complicate SQL sentences?
MM
Svein Erling Tysvær <svein.erling.tysvaer@...> ha scritto:
> Rewrite your query toThat query seems logically equivalent to
>
> select id from TEST T where exists(select * from subquerytable sq
> where sq.id2 = t.id2)
SELECT id FROM TEST T JOIN SUBQUERYTABLE SQ ON (T.id2=SQ.id2)
Are there any reward to complicate SQL sentences?
MM