Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL to generate percentage growth per time period?
DG problem <skatefree_at_gmail.com> wrote in news:647c8500-6164-4691-8332-
99bdbc1dcab7_at_e6g2000prf.googlegroups.com:
> On Nov 28, 2:02 pm, DA Morgan <damor..._at_psoug.org> wrote:
> > You have to pay extra for some of the 10g views, does that include the > SQL you gave above as it uses AWRF? > > > Also, I still need to be able generate percentage change information > (the above example was used for simplicity) based on the table I gave > above if that is possible? >
I thimk that you want to know the weekly change between data values. You want to compare values of data from two distinct rows. You cannot do this easily using SQL. You need to use PL/SQL to do this. The DBMS_SPACE space package will do trend analysis for database table sizez.
It is one of the easier of the non-trivial things that you can do yourself using PL/SQL. If you know how to program using PL/SQL, then it sould take about 10 minutes. If you know how to program, but not in PL/SQL, then it might take a few hours, but that is time well spent. If you do not know how to program, ask again, I'm sure that someone will be willing to demonstrate their programming prowess.
HTH
Andy Young
Received on Sun Dec 02 2007 - 06:13:37 CST
![]() |
![]() |