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: Oracle 9.2.0.1.0 For Windows performance question

Re: Oracle 9.2.0.1.0 For Windows performance question

From: Aguyngueran <grzybek_at_mikrus.pw.edu.pl>
Date: 23 Aug 2003 09:11:39 -0700
Message-ID: <cdac6650.0308230811.1be5732@posting.google.com>


> SELECT
> kod_w || kod_p || kod_g || rodzaj_g, sum(decode(e,'N',1,0)) N,
> sum(decode(e,'U',1,0) U -- etc
> from tabelka
> group by kod_w ||kod_p||kod_g||rodzaj_g
>
> and you can throw away the trash you are using now.
>

Thank You very much. I didn't know about DECODE function. But what about SELECT count(*) from TABELKA; It takes quite long time Received on Sat Aug 23 2003 - 11:11:39 CDT

Original text of this message

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