calculate the total exercise

whenever the report is run, you must calculate the last 3 financial years for each customer. Each fiscal year begins end 07/01 06/30.
ex:
FY 2011:07 / 01/2010 to 06/30/2011
FY 2010:07 / 01/2009 to 30/06/2010
FY 2009:07 / 01/2008 to 30/06/2009

my thought was: compare the current date (sysdate, mm/dd) 07/01
quelque_chose like the following: () I know this isn't quite right)


If (substr(sysdate,'MM/DD/YYYY'), 1, 6) > = ' 07/01 /' then
fy_begin: = ' 07/01 /' | TO_CHAR (extract (year sysdate)-3; / * fy 2008-2011 * /)
fy_end: = ' 06/30 /' | (to_char (extract (year sysdate));)
on the other
fy_begin: = ' 07/01 /' | TO_CHAR (extract (year sysdate)-4; / * fy 2007-2010 * /)
fy_end: = ' 06/30 /' | (to_char (extract(year from sysdate)-1);
end if;

SQL statement will then select statement with a range of dates between fy_begin and fy_end. But how do you compare the month? I kept getting
PLS-00412: list of values not allowed as an argument to the function or procedure

Help

Tai

Try this

IF FY_BEGIN, FY_END are varchar2 can

  IF TO_CHAR (SYSDATE, 'MM') > 7
   THEN
      FY_BEGIN    := '07/01/' || (EXTRACT (YEAR FROM SYSDATE) - 3);
      FY_END      := '06/30/' || EXTRACT (YEAR FROM SYSDATE);
   ELSE
      FY_BEGIN    := '07/01/' ||( EXTRACT (YEAR FROM SYSDATE) - 4); /* fy 2007-2010 */
      FY_END      := '06/30/' || (EXTRACT (YEAR FROM SYSDATE) - 1);
   END IF;

IF FY_BEGIN, FY_END are of type date

 IF TO_CHAR (SYSDATE, 'MM') > 7
   THEN
      FY_BEGIN    := TO_DATE ('07/01/' || (EXTRACT (YEAR FROM SYSDATE) - 3), 'MM/DD/YYYY');
      FY_END      := TO_DATE ('06/30/' || EXTRACT (YEAR FROM SYSDATE), 'MM/DD/YYYY');
   ELSE
      FY_BEGIN    := TO_DATE ('07/01/' || (EXTRACT (YEAR FROM SYSDATE) - 4), 'MM/DD/YYYY'); /* fy 2007-2010 */
      FY_END      := TO_DATE ('06/30/' || (EXTRACT (YEAR FROM SYSDATE) - 1), 'MM/DD/YYYY');
   END IF;

G.

Published by: Ganesh aboumagahrif on March 14, 2011 19:59

Tags: Database

Similar Questions

  • help create dynamic measures to calculate the total amount in the form of tabluar

    Hello world

    We using apex 4.2 and start re-writing some existing applications originally designed in 3.0.   I was wondering if someone could help me with the following scenario.

    I have a tabular presentation several recording based on a collection called "species_collection".  The form allows fisherman to create an electronic ticket which contains one species, quantity, price, total of the amounts and other descriptive information on the species.  I created a dynamic action (with lots of help from this forum) to automatically update the collection when a field is changed.

    I am now in the hope of creating a dynamic action that will automatically do the following:

    • When the quantity is changed, recalculate the total of the amounts as quantity * price
    • When the price is changed, recalculate the total of the amounts as quantity * price
    • When dollars changed, recalculate the $ amount/total price.
    • When the total amount is changed, recalculate the OVERALL TOTAL

    Currently, I use embedded calls to javascript and then to application processes... but they are difficult to debug, and it seems that dynamic action could be cleaner and simpler.

    the current request is (I've included the concerned fields because it is an important application):

    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    .....
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
     
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars
     ......
    from apex_collections
     where collection_name = 'SPECIES_COLLECTION' order by seq_id 
    

    each field, QUANTITY, PRICE, $ has an ONCHANGE that then call the application processes that update the collection.

    <script language="JavaScript1.1" type="text/javascript">
    
    function setTotal(row)
    {
       //quantity was entered into form, get values
       var price = $x('f11_'+row);
       var total = $x('f12_'+row);
       var quantity = $x('f10_'+row);
       var nquantity = parseFloat(quantity.value);
       var ntotal;
       var nprice;
       nquantity = nquantity.toFixed(3);
       quantity.value = nquantity;
       //if quantity and price both have values calculate total and save
       if(quantity.value > 0 && price.value > 0)
       {
          ntotal = quantity.value * price.value;
          total.value = ntotal.toFixed(2);
       }
       else
       {
             //if quantity and total both have values calculate price and save
          if(quantity.value > 0 && total.value > 0)
          {
             nprice = total.value/quantity.value;
             price.value = nprice.toFixed(6);
             //check to see if the price entered falls within min/max for that species
             var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=PriceBoard',0);
             get.add('SPECIESPRICE',price.value);
             get.add('SEQUENCEID',row);
             gReturn = get.get();
             if ((gReturn == 'Price entered is too high') || (gReturn == 'Price entered is too low')){alert(gReturn);}
          }
          else  if (quantity.value > 0)
                   total.value = '';
                else
                { 
                     total.value = '';
                     quantity.value = '';
                }
       }
      //saveQPD(row);
       setOverallTotal(); 
    }
    function setOverallTotal()
    {
       var total = 0;
       var nTotal;
       for(i=1;i<=rowCount;i++)
       {
          if(parseFloat($x('f12_'+i).value) > 0)
          {
             total = total + parseFloat($x('f12_'+i).value);
          }
       }
       ntotal = total.toFixed(2);
       document.getElementById("P110_TOTAL").value = ntotal;
       var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=nullProcess',0);
       get.add('P110_TOTAL',ntotal);
       gReturn = get.get();
    }
    function getPriceBoundaries(row) 
    {
       //price was entered into form get all values
       var quantity = $x('f10_'+row);
       var price = $x('f11_'+row);
       var total = $x('f12_'+row);
       var ntotal;
       var nquantity;
       var nprice = parseFloat(price.value);
       nprice = nprice.toFixed(6);
       price.value = nprice;
       //check to see if the price entered falls within min/max for that species
       var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=PriceBoard',0);
       get.add('SPECIESPRICE',price.value);
       get.add('SEQUENCEID',row);
       gReturn = get.get();
       if ((gReturn == 'Price entered is too high') || (gReturn == 'Price entered is too low')){alert(gReturn);}
       //if quantity and price both have a value calculate the total
       if(quantity.value > 0 && price.value > 0)
       {
          ntotal = quantity.value * price.value;
          total.value = ntotal.toFixed(2);
       }
       else
       {
          //if total and price both have a value calculate the quantity
          if(total.value > 0 && price.value > 0)
          {
             nquantity = total.value/price.value;
             quantity.value = nquantity.toFixed(3);
          }
          else
          {
             if(price.value > 0)
                  total.value = '';
             else
             {
                  total.value = '';
                  price.value = '';
             }
          }
       }
       saveQPD(row);
       setOverallTotal();
    }
    function saveQPD(row)
    {
       var quantity = $x('f10_'+row).value;
       var price = $x('f11_'+row).value;
       var total = $x('f12_'+row).value;
       //save quantity
       var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=setQuantity',0);
       get.add('SETVALUE',quantity);
       get.add('SEQUENCEID',row);
       gReturn = get.get();
    //   alert(gReturn);
       //save price
       get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=setPrice',0);
       get.add('SETVALUE',price);
       get.add('SEQUENCEID',row);
       gReturn = get.get();
    //   alert(gReturn);
       //save total
       var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=setTotal',0);
       get.add('SETVALUE',total);
       get.add('SEQUENCEID',row);
       gReturn = get.get();
    //   alert(gReturn);
       
    }
    function changePrice(row)
    {
       //total was entered get all rows
       var quantity = $x('f10_'+row);
       var price = $x('f11_'+row);
       var total = $x('f12_'+row);  
       var ntotal = parseFloat(total.value);   
       var nprice;
       var nquantity;
       ntotal = ntotal.toFixed(2);
       total.value = ntotal;
       //if quantity and total were entered calculate price.
       if (quantity.value > 0 && total.value > 0)
       {
          nprice = total.value / quantity.value; 
          price.value = nprice.toFixed(6); 
          var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=PriceBoard',0);
          get.add('SPECIESPRICE',price.value);
          get.add('SEQUENCEID',row);
          gReturn = get.get();
             if ((gReturn == 'Price entered is too high') || (gReturn == 'Price entered is too low')){alert(gReturn);} 
       }
       //if price and total were entered calculate quantity.
       if (price.value > 0 && total.value > 0)
       {
          nquantity = total.value / price.value;  
          quantity.value = nquantity.toFixed(3);
       }
       if (price.value > 0 && quantity.value > 0)
       {
           ntotal = quantity.value * price.value;
           total.value = ntotal.toFixed(2);
       }
     
           
       saveQPD(row);
       setOverallTotal();        
    }
    
    function selectDollarsFocus(pRow,event)
    {
        tabPress = 0;
        KeyCheck(event);
        if($x('f11_'+ pRow))
        {
                if(KeyID == 9)
                {
                    $x('f14_'+ pRow).focus();
                    onFocusAreaFished(pRow);
                    tabPress = 1;
                }
        }
        else
        {
            if($x('f18_'+ pRow))
            {
                    if(KeyID == 9)
                    {
                        $x('f18_'+ pRow).focus();
                        tabPress = 1;
                    }
            }
            else
            {
                if(--pRow <= rowCount)
                    if(KeyID == 9)
                    {
                        $x('f08_'+ pRow).focus();
                        tabPress = 1;
                    }
            }
            
        }
    }
    
    
    
    </script>
    

    I'm not very familiar with javascript... but looks like there must be a simpler way.   Any thoughts on how I could address the issue?   Thank you!

    I have it.  trial and error.

    the DYNAMICS of the evolution of prices and the $ action are now two separate dynamic actions.

    Action DYNAMICS to update the column from the collection is now last... and it seems that everything works... until I have change something again.

    Thanks again for your help.

    Karen

  • Calculate the total number of the schema rowset.

    Hi all

    I use the oracle 10g database on windows server 2003.

    I want to calculate the total number of lines in a pattern.
    I have only one method to select just count (*) from each table within each schema.
    because it doesn't matter what possible query that could calculate the total number of lines in a pattern?


    Thank you.

    Published by: Maahjoor on May 13, 2013 23:21

    Hello

    Well, if you keep your cool failry statistics, you can get a very good grip on the number of lines through the NUM_ROWS in dba_tables column and then summarize the owner, on the top of my head:

    select sum(NUM_ROWS) from dba_tables where owner like 'SCHEMA';
    

    Do not forget that the number of lines shown this way will be the number of lines at the time of the last crawl (dbms_stats) has been run on the segment, so it may not always be equal to the number of the schema rowset did when running.

  • How can I calculate the total time in java?

    Hello!

    I need to calculate the total time!

    For example I start time:
    Format formatter1;
    Date date1 = new Date();
    formatter1 = new SimpleDateFormat("hh:mm:ss");
    Dim startTime = formatter1.format (date1);
    startTime = "14:20:40.

    And I have finishing time:
    Format formatter2;
    Date2 date = new Date();
    formatter2 = new SimpleDateFormat("hh:mm:ss");
    String finishTime = formatter2.format (date2);
    finishTime = '08:30:55;



    Also, having calculated manually, I get the total time: '18:10:15.

    How can I calculate the total time in java? (Using formatter1 and formatter2 I guess)

    What I need is to print 'total 18:10:15 '.

    Thank you!

    800512 wrote:
    I did the following, but I think something's wrong here:

    I've defined before: Date date1 = new Date(); Date2 date = new Date();
    And it should be exactly 5 seconds between them.

    I found the delta between date1 and date2:

    Format formatter = new SimpleDateFormat("HH:mm:ss");
    timeInMilliFromStart long = date1.getTime () - date2.getTime ();
    Date date3 = new Date (timeInMilliFromStart);
    String timeInSecFromStart = formatter.format (date3);

    and I still get
    timeInSecFromStart = 02:00:05

    But it should be exactly 00:00:05.

    What is a problem?

    Because, as I said, a Date to measure a moment in time, not a period. So when you have 5000 ms, and you that transform a Date, this means that 5 seconds after the time, which equals 00:00:05.000 01/01/1970 GMT.

    As I said, if you are not currently in GMT, then you must set the DateFormat GMT TZ. Right now, it's to show you the time in your TZ. If you have included the date in your SimpleDateFormat, you would see the 01/01/1970 or 31/12/1969, function that TZ you find.

    Bottom line: you try to use these classes in a sense they are not intended for, and while you can get the results you want for a limited set of entries if you understand how these classes and how to work with it, it is a fragile approach and comes with all sorts of warnings warning.

  • How to calculate the Total price based on a rate of m² with different prices?

    Hello

    I'm guessing that it is a script, but I've never done any script so I would like to ask you guys...

    I have a form where I would calculate the total price for some carpet based on the price per sqm.

    -L the user enters the number of carpet needed.

    -There are different price points for 1-20, 21-60, 61 + m² (each with their own hidden field that contains the value of awards).

    -The Total Price field evaluates the relevant quantity and multiply by the square metre rate.

    Is it achievable?

    I guess that all solutions are placed in the "Custom calculation Script" field too?

    Thanks in advance!

    Yes. You can use something like this, as the custom of the price field calculation total (you may need to adjust the domain names):

    var sqm = Number (this.getField("SQM").value);

    rate of var = 0;

    If (sqm > 0 & m²)<=20) rate="">

    ElseIf (> 20 sqm & m²)<=60) rate="">

    ElseIf (> 60 sqm) rate = Number (this.getField("Rate3").value);

    M² = Event.Value * side;

  • Calculate the total

    Guyz,

    I have a tubular block where I want to calculate the total fields Horizontallay in well vertically, as shown in the record of the image below.

    http://www.imagehousing.com/image/921042

    Vertical total is OK, but how do I display total horizontally?

    or should I take write the sum (item_code) in POST_QUERY of trigger? someone help me solve this problem.

    Thanks in advance.

    Concerning

    Houda

    Houda,

    You want to get the total of each record in the DIS_TOT field, right?

    for this just to give in the formula column

    NVL(:BLOCK.) CONSULTATION, 0) + NVL(:BLOCK.) LABORATORY, 0) + NVL(:BLOCK.) DENTAL, 0) + NVL(:BLOCK.) COUNTERFEITS, 0) + NVL(:BLOCK.) OTHERS, 0)

    Then it will be OK.

    I hope this helps.

    Kind regards

    Manu.

  • Calculate the total in the table

    OK I searched the forums, and no matter what I do, I can't do it works again.  I had the script in the table home, but for some reason, it doesn't work because I changed the work tables.  Here are the details.

    I have a table that require a bunch of info to submit a purchase request.  I have a cell ask for quantity and the other cell (different line) ask the price and then I would like the 'total price' cell (different line) to calculate the total.  I had the script in the original table, but I had to make some significant changes to the table, so I started a new.  Now I can't get the script to work.  The field type is a decimal digital, difference?

    It is a FormCalc as a calculate event.  My script is:

    Form1. #subform [0]. Table3.Row5.Cell4

    * form1. #subform [0]. Table3.Row6.Cell4

    I recorded it in dynamic PDF.

    What Miss me?  Thank you

    I have sent the form of return of Joe with an explanation and a screenshot of what I changed.

  • How to calculate the total of a mathematical operation

    Hello everyone,

    I'm new to Essbase calculations, and I'm trying to figure out how to make a recurring calculation and store the results in a specific data point. I have two accounts:
    Volume of sales (in units) - StoreData
    Rate of work (hours) - DynamicCalc based on a specific percentage by product rate

    These two pieces of information are by product. As each product has a different rate and volume, to calculate the total number of hours required for the production of all the elements, I have to do something like the calculation below where (sales volume * wage rate) for each product:

    Total hours = SUM (sales volume * wage rate)

    It is very easy to do in relational DB, but I need help with Essbase.

    Any ideas? Thank you very much.

    M.

    You try to do something of relationship in an OLAP cube. The way to proceed is different. In Essbase, you would make the Total number of hours of calculation = sales volume * wage rate) on each product and their aggregation up to the size to get a total at different levels.

  • Calculate the Total cumulative

    The following is designed as a repeating subform with new line instances added via an Add button.

    I need each Rollup field (on each line) to automatically calculate on the basis of either:

    1. the amounts of payment 'in progress' and 'all the above' (i.e. of cumulative payment 3 ($ 1,800) = sum of payments 1, 2 and 3)

    or

    2 tpayment cumulative previous he + current payment (i.e. cumulative payment ($ 1,800) 3 = cumulative payment ($ 1100) 2 + 3 ($700) payment )

    Cumulative payment period

    1 500 500

    2 600 1 100

    3 700 1 800

    Can someone please help. I understand that I need to retrieve the "previous instances" don't put no not sure what I'm doing wrong...

    Here is my solution to this problem.

    Note the I<> in the condition of the loop for. Which stops the calculations on which line you enter numbers in. (You don't want to add the amount of line 3 to the total of line 2, for example).

  • How to calculate the total memory used by oracle under Linux?

    Hi all

    In one of my server have 148 GB of total physical memory and 12 databases are running. For capacity planning, I need to know how the Oracle server use.

    How to calculate the use oracle database? I was perplexed because Yop out his show off 148 gb 128 GB are used.

    Below for your reference:
    ++++++++++++++++++++
    == > back to top
    top - 09:52:32 up to 151 days, 15:20, 3 users, load average: 6.11, 6.00 6.05
    Tasks: 7 running, 1314, 1321 total sleep, stopped 0, 0 zombie
    CPU: 37.8%us, 1.4%sy, 0.0%ni, 55.0%id, 5.6%wa, 0.1%hi, 0.2%si, 0.0%st
    MEM: 148290444 k total, 129368792 k used, 18921652 k free, 1450292 k buffers
    Swap: 50331632 k total, 1296188 k used, 49035444 k free, 114733336 k cached


    The memory allocated to each instance is: sga total == > 34 pga = > 48 GB gb
    +++++++++++++++++++++++++++++

    SGA PGA
    4 GB 4 gb
    4 GB 4 gb
    2 GB, 4 GB
    2 GB, 4 GB
    2 GB, 4 GB
    2 GB, 4 GB
    2 GB, 4 GB
    3 gb 4 gb
    3 gb 4 gb
    4 GB 4 gb
    3 gb 4 gb
    3 gb 4 gb

    Thank you

    Try this - http://www.pythian.com/news/29703/oracle-instance-memory-usage/ for each of your instances.

    As far as I know, different instances may share only the binary code oracle and using libraries, so you should be able to easily understand the amount of memory of all instances of 12.

    Lordane Iotzov
    http://iiotzov.WordPress.com/

  • Script to gather and calculate the total number og Sockets PR. cluster

    Hello

    for licensing purposes, I need to collect a report host information and decision-making by the host.

    I want the report to include the following text:
    -Display the host by cluster (attached script) information.

    -A title with NOMCLUSTER by cluster

    -The total catch by cluster

    I guess my problem is that I work in a table and I want to insert empty lines and headlines and my attempts have failed so far. I don't know if I should convert to html format and change the page in this way. (hope not)

    I'd appreciate any help...

    / Kim

    Hi Kim,

    Welcome to the VMware communities.

    I modified your script to include a row header per cluster with the name and the total number of outlets for the cluster:

    $clusters = get-cluster | sort name
    $vms = $null
    if(test-path report.htm)
    {
        remove-item report.htm
    }
    
    foreach ($cluster in $clusters){
        $report = @()
        $ClusterSockets = 0
        foreach ($ESXHost in ($cluster | Get-VMHost | Sort Name)){
            $row = "" | Select Name, Version, Build, ClusterName, Model, ProcessorType, Sockets, Cores, PNics
            $row.name = $ESXHost.name
            $row.version = $ESXHost.version
            $row.build = $ESXHost.build
            $row.clustername = $cluster.name
            $row.model = $ESXHost.model
            $row.ProcessorType = $ESXHost.ProcessorType
            $row.sockets = ($ESXHost | Get-View).Hardware.CpuInfo.NumCpuPackages
            $ClusterSockets += $row.sockets
            $row.cores = ($ESXHost | Get-View).Hardware.CpuInfo.NumCpuCores
            $row.PNics = ($ESXHost | Get-View).Config.Network.Pnic.Count
            $report += $row
        } # End foreach host
        "

    $($Cluster.Name), Number of sockets: $ClusterSockets

    " | Out-File report.htm -append $report | ConvertTo-HTML | Out-File report.htm -append } # End foreach cluster .\report.htm

    Best regards, Robert

  • calculate the total of days

    Hello world

    I have 2 items in date:

    p9_begin and p9_end

    I want to show every Sunday between these two days, and the total number of Sundays.
    I also want to show the total number of days less on Sundays.

    I can't think of a solution for this. I tried to loop, but it doesn't seem to work properly.
    Does anyone have a suggestion?

    Kind regards
    Diana

    Hi Diana,

    You could do something like:

    WITH X AS (SELECT TO_DATE(:DATE1,'DD/MM/YYYY') + LEVEL - 1 THE_DATE FROM DUAL CONNECT BY TO_DATE(:DATE1,'DD/MM/YYYY') + LEVEL - 1 < TO_DATE(:DATE2,'DD/MM/YYYY'))
    SELECT (SELECT COUNT(*) FROM X WHERE TO_CHAR(THE_DATE, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH') = 'SUN') SUNDAYS,
    (SELECT COUNT(*) FROM X WHERE TO_CHAR(THE_DATE, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH') <> 'SUN') OTHERDAYS
    FROM DUAL
    

    which would give you your Sunday/non-dimanche. pus

    WITH X AS (SELECT TO_DATE(:DATE1,'DD/MM/YYYY') + LEVEL - 1 THE_DATE FROM DUAL CONNECT BY TO_DATE(:DATE1,'DD/MM/YYYY') + LEVEL - 1 < TO_DATE(:DATE2,'DD/MM/YYYY'))
    SELECT THE_DATE FROM X
    

    I will give you all the dates.

    : DATE1 is some element contains your 'count' and: DATE2 is your "to this day".

    Andy

  • calculate the total based on text filled fields

    Hi, I have 5 text fields to fill out my form. first 4 fields are normal text fields to fill & 5th is total field. each field value is $ 15. what I want to do, is if the first field filled with any text and then the field value total is $ 15. If it is filled with second text fields and field value total $30. like this, he must calculate all 4 total fields. pls help me to handle this. Thank you...

    You can use something like that the custom field calculation script total (simply adjust the field names, of course):

    var total = 0;
    if (this.getField("Text1").valueAsString!="") total+=15;
    if (this.getField("Text2").valueAsString!="") total+=15;
    if (this.getField("Text3").valueAsString!="") total+=15;
    if (this.getField("Text4").valueAsString!="") total+=15;
    event.value = total;
    
  • How to calculate the total wages a distinct job_id by using the query panel research

    Hi Experts.

    12.1.3 JDev

    I have a panel with query table. I have LOV job_id in the query Panel.

    Then user will select a job_id of drop down and click Search

    After that a comes.and on foot to pay bribes, I added the transitory as attribute #{bindings. TotalSal.inputValue}

    Vo, I created TotalSal (transient) attribute is always editable and in the Expression, I chose ExployeesVIew1.sum ("Salary")

    But the page is not properly.

    It should behave like below...

    SELECT SUM of employee where job_id as 'IT_PROG ';

    SELECT SUM of employee where job_id as 'AD_VP ';

    Thank you

    Roy

    Hi Roy,

    Check out this blog it will match your needs. Its only for 12 c

    http://andrejusb.blogspot.in/2013/02/Oracle-analytic-functions-for-total-and.html

    Thank you

    Ehswar M

  • How to generate a line in the report to calculate the total?

    Hello:

    I need help to generate a report. In an accounting report, I need to make the sum for each customer about the outstanding balance. The format of the report is the following:

    Invoice #, date of invoice, invoice, amount paid amount paid date, strike, sale

    Customer name: Baker Express / name of the debtor: Kurt Weiss inc.

    137308001, 18/04/2012, 438.07, 537.07, 05/06/2012, (99)
    137308002, 18/04/2012, 10, 100, 90, 05/06/2012

    ...

    customer Total: total payment: 627.07, total outstanding amount: (99)

    another pair of customer / debtor
    ...


    My question is how to generate the payment total and total outstanding balancefor each pair of client and the debtor. And there are several pairs. I tried to use Group by, but how do I display each tuple of invoice as well in the report?

    Any help would be appreciated.

    Sam

    One method would be to use the rollup in your SQL
    http://www.Oracle-base.com/articles/Misc/rollup-cube-grouping-functions-and-grouping-sets.php

Maybe you are looking for

  • Re-installing Windows 10 on Satellite click Mini

    I'm doing a clean reinstall of win 10 on my Toshiba mini click, after a day struggling with the recurring 'auto' loop repair I have my USB, but... When I get to the screen of the new facility, the keyboard, or work on touch screen, it is impossible t

  • Satellite L750 - Bluetooth does not work after BIOS update

    I am preparing some L750 notebooks for use and accept updates from the Toshiba, which included an upgrade of BIOS v1.70 for v2.00. He appears after this update occurs that Bluetooth no longer works, i.e. try to install Bluetooth Toshiba stack will fa

  • MacBook pro 2012 will not identify new SSD

    I just bought a macbook pro of 2012 and have used it for two weeks without flaws with my 250 GB samsung SSD drive. Now I tried to update the size and bought myself a Corsair Force THE 480 GB to use as the primary drive. I plugged it in, but the mac d

  • Portege R600 / A600 and double output screen

    Hello Could you tell me if it is possible to output to two screens on the R600 or A600 with any of the Toshiba Docking solutions? I was told that it is possible, however I was told today by the sales of Tosh is not possible to do. I want to end my ho

  • 646-KB976321 error code

    I'm under win 7 and invited this am to install 3 updates. Security for microsoft office system - KB976321 update will not install.  Have tried several times but without success. Please notify.