On Jun 14, 2006, at 16:15 UTC, Igor Tandetnik wrote:
> > SELECT FROM WHERE recID IN () ORDER BY
> > dateFld
>
> Why not just
>
> select from order by dateFld;
>
> ?
Because that gets me all records. I only want those in my list of record IDs
(which comes from another source, outside the database).
> Can you show the exact query you use?
Well, no, because there are about 20 fields in and 13000 values in
. Note that does include both recID and dateFld, if that
matters. But apart from showing the actual field and value list, and the table
name, the above query IS the exact query I use.
> There must be more to your query - something that prevents an index on
> dateFld from being used.
That's what it seems; I just can't imagine what that could be.
Thanks,
- Joe
--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC "Making the Internet a Better Place"
http://www.verex.com/