Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: function-based index for SUM(field) and GROUP BY

Re: function-based index for SUM(field) and GROUP BY

From: Christian Nölke <YXZAAKJJPSAZ_at_spammotel.com>
Date: 26 Jun 2003 14:30:03 GMT
Message-ID: <Xns93A6A7E10602EYXZAAKJJPSAZspammote@130.133.1.4>


> I have a SQL-Statement which looks like:
> SELECT A, B, SUM(C), SUM(D)
> FROM MYTABLE
> GROUP BY A, B
> Is it possible to enhance the performance by creating a
> function-based index say

No, wouldn't make any difference. If you do a select without a whereclause,  Oracle has to performe a full-table-scan, so the indexes are not used. Received on Thu Jun 26 2003 - 09:30:03 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US