Subject | Re: [ib-support] Adding index does nothing to select disctinct |
---|---|
Author | Mark Patterson |
Post date | 2002-09-16T06:26:18Z |
Thomas Miller wrote:
select distinct job_number from sawmembers
where job_number <> ''
and it didn't make it run any faster.
Regards,
Mark
> Not that this will work, but try thisWell, job_number is string so it was
>
> SELECT DISTINCT(JOB_NUMBER) FROM SAWMEMEBRS
> WHERE JOB_NUMBER <> 0
>
> Several people have reported that by using a bogus where clause on
> the column that has the index, makes it use the index.
select distinct job_number from sawmembers
where job_number <> ''
and it didn't make it run any faster.
Regards,
Mark