Re: how to optimize this query
Please try this statement instead and let us know the change
SELECT f.id, f.species_name, f.date
FROM lister_importedsighting as f
WHERE user_id=%s
and NOT EXISTS ( SELECT x.id
FROM lister_importedsighting as x
WHERE f.user_id = x.user_id
and f.species_name = x.species_name
and f.date > x.date
)
Subject
Written By
Posted
Re: how to optimize this query
March 16, 2009 10:29PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.