Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

using PL/SQL to sort quarterly results based on a certain year or sales.

529810Sep 11 2006 — edited Sep 11 2006
Hello All.

I want to write a script that does the following:

creates a table with 5 columns, one for name and the other 4 to for quarterly results based on a certain years sales. I then want to use PL/SQL to sort the data and then insert it into the newly created table. Can anyone advise me/show me how to do this using scotts tables?

The table I would get this from would have four columns, one with customer_id, one with shipped_date another with order_date and one with total value.

I want to insert the AVG value for each order for each quarter of the year 1990 into the new table but I can't figure out how to use the PL/SQL to do this, after creating the table I am a bit lost. I need to display the average for all customers for each quarter.

TIA
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 9 2006
Added on Sep 11 2006
7 comments
749 views