SQL*Plus (MOSC)

MOSC Banner

To add more calculated fields to the report...

edited Jan 11, 2010 9:35PM in SQL*Plus (MOSC) 7 commentsAnswered
Hi, I have a oracle table with these 4 columns.  I want to write a SQL query to produce a report as indicated below.  Can SQL*PLUS do it?  Please help.

Asset Name      Amount Paid Pay Starts Period(Month)
--------------- ----------- ---------- -------------
Oracle Accounts $3,600       01-NOV-09       6
Oracle Accounts $7,200       01-NOV-09       6 

Here is the report I want,

Asset Name      Amount Paid Pay Starts Period(Month) 01-NOV-09 01-DEC-09 01-JAN-10 01-FEB-10 01-MAR-10 01-APR-10
--------------- ----------- ---------- ------------- --------- --------- --------- --------- --------- ---------
Oracle Accounts $3,600      01-NOV-09       6        $600      $600      $600      $600      $600      $600
Oracle Accounts $7,200      01-NOV-09       6        $1200     $1200     $1200     $1200     $1200     $1200

Thanks.   

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center