Re: [PERFORM] Improving performance of a query

2005-09-06 Thread Merlin Moncure
> > Carlos wrote: > > SELECT * FROM SSIRRA where > > (YEAR = 2004 and CUSTOMER = 04 and CODE = 00 and PART >= 00) or > > (YEAR = 2004 and CUSTOMER = 04 and CODE > 00) or > > (YEAR = 2004 and CUSTOMER > 04) or > > (YEAR > 2004) > > [snip] > > > > ah, the positional query. Yo

Re: [PERFORM] Improving performance of a query

2005-09-06 Thread Stephan Szabo
On Tue, 6 Sep 2005, Merlin Moncure wrote: > Carlos wrote: > SELECT * FROM SSIRRA where > (YEAR = 2004 and CUSTOMER = 04 and CODE = 00 and PART >= 00) or > (YEAR = 2004 and CUSTOMER = 04 and CODE > 00) or > (YEAR = 2004 and CUSTOMER > 04) or > (YEAR > 2004) > [snip] > > ah,

Re: [PERFORM] Improving performance of a query

2005-09-06 Thread Merlin Moncure
Carlos wrote: SELECT * FROM SSIRRA where (YEAR = 2004 and CUSTOMER = 04 and CODE = 00 and PART >= 00) or (YEAR = 2004 and CUSTOMER = 04 and CODE > 00) or (YEAR = 2004 and CUSTOMER > 04) or (YEAR > 2004) [snip] ah, the positional query. You can always rewrite this query

Re: [PERFORM] Improving performance of a query

2005-09-03 Thread Michael Fuhr
On Sat, Sep 03, 2005 at 09:02:27PM +, Carlos Benkendorf wrote: > Is there a way to improve the performance of the following query? > > SELECT * FROM SSIRRA where > (YEAR = 2004 and CUSTOMER = 04 and CODE = 00 and PART >= 00) or > (YEAR = 2004 and CUSTOMER = 04 and CODE > 00

[PERFORM] Improving performance of a query

2005-09-03 Thread Carlos Benkendorf
Hi,   Is there a way to improve the performance of the following query?   SELECT * FROM SSIRRA where (YEAR = 2004 and CUSTOMER = 04 and CODE = 00 and PART >= 00) or (YEAR = 2004 and CUSTOMER = 04 and CODE > 00) or (YEAR = 2004 and CUSTOMER > 04) or (YEAR > 2004)   Thanks in