Results 1 to 3 of 3

Thread: SQL Scripts Needed

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Lagos, Nigeria
    Posts
    50

    SQL Scripts Needed

    please I need to write a select statement to to get a report format in table 2

    I have a table below (Table 1) in my database and need to generate a report in the Table 2 format

    Table 1

    MeasureName Location Period BudgetActual Data
    Novels ***** 2007/03 Actual 2,536
    Novels ***** 2007/03 Budget 25,897
    Medical Books ***** 2007/03 Actual 1,478
    Medical Books ***** 2007/03 Budget 2,589
    Science Books ***** 2007/03 Actual 4,887
    Science Books ***** 2007/03 Budget 369
    Sociology Books ***** 2007/03 Actual 1,578
    Sociology Books ***** 2007/03 Budget 35,897
    Liberal Arts Books ***** 2007/03 Actual 2,564
    Liberal Arts Books ***** 2007/03 Budget 25,687

    Table 2

    MeasureName Location Period Actual Budget
    Novels ***** 2007/03 2,536 25,897
    Medical Books ***** 2007/03 1,478 2,589
    Science Books ***** 2007/03 4,887 369
    Sociology Books ***** 2007/03 1,578 35,897
    Liberal Arts Books ***** 2007/03 2,564 25,687

    Can somebody help out please?

  2. #2
    Fanatic Member kaffenils's Avatar
    Join Date
    Apr 2004
    Location
    Norway
    Posts
    946

    Re: SQL Scripts Needed

    And we are so good at guessing what DBMS you are using....

  3. #3
    New Member
    Join Date
    May 2007
    Posts
    2

    Re: SQL Scripts Needed

    Oracle Database I guess

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width