Hi,
In the past I seem to have been able to speed up queries by making them a
join rather than ... not a join :o)
An example would be
select * from x where a in (select a from y)
would be something like... select x.* from x inner join y on x.a = y.a
Now I have a more complicated query, which seems to drag for hours, and I
wondered if it could be made faster by the use of joins.
SELECT *
FROM addresses
WHERE [conditionX] = true
and personref not in (select personref from addresses where [conditionY] =
true);
The personref is not unique! So I want addresses where conditionX is true,
and the refno has no other addresses associated that have conditionY true.
Thanks in advance
Chris