Masaru Sugawara wrote:
>
> You are right. And this type of optimising are not yet implemented.
> Tom said it in the prior discussions.
>
...but is it true that if you place the filter clause first,
the join will not have to complete the whole table?
eg.
SELECT item.description, stock.available
FROM item, stock
WHERE item.itemid = '1234'
AND item.itemid=stock.itemid;
...would be more efficient than,
SELECT item.description, stock.available
FROM item, stock
WHERE item.itemid=stock.itemid
AND item.itemid = '1234';
--
Keith Gray
Technical Services Manager
Heart Consulting Services P/L
mailto:keith@heart.com.au