Number of the formula of implementation

I faced a problem to implement under question.

Here is an example

Main table

code desc
RECIPES 1
2 FINANCIAL CHARGES
3 REVENUE / Capital load., %

Transactions table
months of amount code process
1 30 April 11 100
2 5000 1 May 11

Calculate the value of code 3 as (code 1 code 2) * 100
I want we want to keep this formula in a table and to calculate according to the formula in the table (the formula is variable) and for this reason, we cannot write any direct formula in the procedure.
I'm looking for help on the forum on this issue. Thanks in advance.
create table t  as (
select  10  REVENUES,
           100  CAPITAL_CHARGE,
          'REVENUES / CAPITAL_CHARGE' EQUATION FROM DUAL
          );

 -----------------------------------------------------------------

 SELECT
                  REVENUES, CAPITAL_CHARGE,
                   TO_NUMBER (
                      EXTRACTVALUE (
                         xmltype (
                            DBMS_XMLGEN.
                             getxml ( 'SELECT '||EQUATION ||' RESULT FROM T'
                               )),
                         '/ROWSET/ROW/RESULT'))
                      result
              FROM t
REVENUES     CAPITAL_CHARGE     RESULT
10     100     0.1

Tags: Database

Similar Questions

  • Caveat "the formula uses a Boolean value instead of a number" would dismiss

    Hello!

    I do a "Calculator" to get estimates of price for the projects, according to which processes the customer wants.

    Rates for each process are added in another table, and I use the list of control buttons to enable or disable the various processes.

    Here is an example of a formula:

    D3 determines if the part of the project modeling is performed, so the price will be or will not be calculated.

    If D3 is true, the result is multiplied by 1, give me a positive amount. If false, the result will be multiplied by 0, 0, so nothing to add to the final cost he send me some.

    Same for B4 in the same formula.

    This formula is repeated all over the chart, with minor changes to add more complex options, but it's all the same.

    Everything works fine, but I got those blue triangles warning me of "the formula uses a Boolean value instead of the number". That's fine with me, I like the use of the Boolean types, and they make my formulas work well in my calculator. How can I reject the blue triangles?

    They are a little annoying. And they do not really correspond with the general style of my calculator.

    I saw someone talking other types of formulas, with SEARCH and yews, but who is really complicated and I don't know how to do... Especially for a simple calculator

    Is there a way to simply do not display warnings?

    Using the version 3.6.2 on a MacBook Pro, OSX El Capitan 10.11.5

    Thank you!

    Hi Sinshassan,

    I don't know a way to escape your blue flags except to make a formula which is consistent with the expected numbers. It is not difficult.

    My formula D2 = yew (AND(D1,B2), C2, 0)

    The IF statement tests the two D1 AND B2. If they are true, then it indicates the value of C2 your carbon Modeling::High Poly #1, if one or both are false (unchecked) then 0 is displayed.

    Give it a try.

    Quinn

  • You can set the formula in number bar to be exhibited permanently as in Excel?

    I like to use my iWork apps, but something with that I am even more uncomfortable is the formula bar in excel, it is always visible and editable at the top of the window.  Is it possible to do with the numbers?  Several times I'm just quickly scroll the cells and I must make reference to the text below bar and double-click in the cell, if there is a specific part, I need to change.  It would be much easier for me if the same bar could be read/write section.  Any help would be really appreciated.  Thank you!

    Hi Adam,.

    I think that currently, we're stuck with double click to open the formula editor.

    Menu > numbers > provide numbers of feedback for your comments and suggestions!

    Quinn

  • Using the formula of numbers

    Hello.

    I seems to have hit a wall with a simple spreadsheet, I'm developing.

    I want to administer the spreadsheet on my mac, but I want to be able to edit the spreadsheet through my people, using ipads. I also want to synchronize the file to the cloud so all have an updated file to use. I'm testing number and Excel. Excel works fine but the numbers I think has a bug. I want to use the numbers for several reasons.

    I've attached a screenshot of a fake spreadsheet which basically highlights what I want to achieve below. The spreadsheet works fine in number for mac, but on the iPad, I have an annoying problem that it may take a more complex formula to make it work.

    Basically, this is how I want my spreadsheet to work:

    Cells C4 - C6 and D6 - D4 are the date cells through which we enter the date in and out. The column days Out (column E) subtracts basically two dates. The return last column (column F) subtracts the Date in the column (column D) with the date in H1. So, I want to be able to sort the F column in descending order (which is the most important function of the spreadsheet, numbers of thugs are so unwanted) the spreadsheet works fine on my desktop, but on my iPad numbers puts a large number of column F (usually 73000 + according to the effective date, see line 7 in the attached photo). Those big numbers seem to be the number of days since the year "0".

    Here are the formulas that I currently use:

    Column E: IF (OR(C6=0,D6=0), "", D6−C6)

    Column F: IF (OR (C6 = 0, D6 = 0),"", $H$ 1−D6 ")

    Column H: today()

    I used the function DateDiff but that does not work.

    Is this a bug? Or can I somehow generate a formula that will require to work?

    Fixing unfortunately it's become outside my experience base with spreadsheets.

    Hi Duke,

    Can't tell what's going on, but I get the correct results, recording the same formulas in column d a new document worksheet in numbers for iPad.

    Results in column D are the same as yours. Results in column E are one day less than yours for the first two items (it's always may 20 here) and d 187 to the third point.

    What is the (real, not "scheduled") formula in the iPad version F4?

    Kind regards

    Barry

  • How to insert as an entry within the formula variable, the total time on the scope window?

    How to insert, as an entry within the formula variable, the window of total time on the scope (i.e. of 20ms/div x 10 div = 200ms)?

    HERE'S A SAMPLE QUESTION:

    FORMULA FOR INTEGRAL ACTION:

    STATISTICS:

    Input variable: DPO4034 (CH1);

    Box: number of samples.

    FORMULA

    Input variable 0: DPO4034 (CH1); alias: x 0

    Input variable 1: 'time window Total out of scope?. " alias: x 1

    Input variable 2: number of samples (CH1); alias: x 2

    Under the operation Configuration: formula

    Y = (x 0 ^ 2) *(x1/x2)

    Output: Data 1 (CH1)

    THEN, WITH THE HELP OF STATISTICS:

    Input signal: data processing 1 (CH1)

    Checkbox: SUM

    Output: CH1 integral Action [has ^ 2s].


  • How to create the formula with the lookup table

    Hi, I would like to convert formula in the below format of labview, no idea how this could be done more easy way?

    I intend to use the node form, but I'm not sure how to use the table of choice within the formula not or is that even possible?

    BR, Jani

    Dim dblLookUp (-) As Double = New Double (3, 1) {{4, 4}, {10, 200}, {60, 3000}, {100, 7000}}
       
    If dblAbsValue > = 0 and dblAbsValue<= dbllookup(0,="" 0)="">
    USB = dblLookUp (0, 1) / dblLookUp (0, 0)
    dblAbsValue = dblValue * USB
    ' lblMode.Text = 1
    ElseIf dblAbsValue > dblLookUp (0, 0) and dblAbsValue<= dbllookup(1,="" 0)="">
    USB = (dblLookUp (1, 1) dblLookUp (0, 1)) / ((1, 0) - dblLookUp dblLookUp (0, 0))
    dblValue = USB * dblAbsValue - USB * dblLookUp (0, 0) + dblLookUp (0, 1)
    ' lblMode.Text = 2
    ElseIf dblAbsValue > dblLookUp (1, 0) and dblAbsValue<= dbllookup(2,="" 0)="">
    USB = (dblLookUp (2, 1) dblLookUp (1, 1)) / (dblLookUp (2, 0) - dblLookUp (1, 0))
    dblValue = USB * dblAbsValue - USB * dblLookUp (1, 0) + dblLookUp (1, 1)
    ' lblMode.Text = 3
    ElseIf dblAbsValue > dblLookUp (2, 0) and dblAbsValue<= dbllookup(3,="" 0)="">
    USB = (dblLookUp (3, 1) dblLookUp (2, 1)) / (dblLookUp (3, 0) dblLookUp (2, 0))
    dblValue = USB * dblAbsValue - USB * dblLookUp (2, 0) + dblLookUp (2, 1)
    ' lblMode.Text = 4
    On the other
    dblValue = dblLookUp (3, 1) ' * Math.Sign (dblValue)
    ' lblMode.Text = 5
    End If

    Return dblValue * intSign

    Hello janijt,

    You can certainly use formula node for it. What you would do is to create a constant for the lookup table.

    Here is an implementation in MathScript node

  • dynamic data in the formula is originally running slow and weird results

    I am collecting 11 channels of analog input voltage, then perform a series of calculations (different, editable) on each channel of the voltage to convert each temperature sensor.

    My first step in calculations (with the help of multiply, subtract and divide blocks) works very well.

    My second step of calculations (which includes a natural logarithm "ln") is performed with the formula block. However, the formula block has three red arrows where are the constants of entry, and the results of the formula block are intermittent and incorrect (if drawn, drop the lightning just drawn what looks like a value of 1 intermittently... If saved to a csv file, the results show a bunch of zeros and then a row of values, then more zeros).

    I don't know if I need to convert my dynamic data in a table before feeding in the formula, or if there is another way by applying a complex formula of dynamic data, or...? I would stick with dynamic data because it makes tracing easier, but I'm open to other suggestions.

    The answer is very simple- do not use Dynamic Data.  I have never understood why NEITHER created this (other than to show "how easy it is to collect the DAQ and screw Express Wizard" (and not to mention that you lose a lot of control over what you do).)  There have been many questions here in the Forums and a number of players with a lot more experience I have also made the same recommendation.

    I don't know where the dynamic data in your case.  If it came from the DAQ Assistant, by all means read this and get rid of this wizard!

    Bob schor

  • Identification number of the AppWorld

    Hello gurus of Blackberry,.

    I have 2 versions of my game: free (first two) and paid. The free version contains a button that allows users to upgrade. Here's the code that implements this button:

    private void upgradeToPro()
        {
        try
          {
          Registry registry = Registry.getRegistry( RRMidlet.class.getName() );
          Invocation invocation = new Invocation( null, null, "net.rim.bb.appworld.Content", true, ContentHandler.ACTION_OPEN );
          invocation.setArgs( new String[] { "12345" } );   // this should be App World ID number
          registry.invoke(invocation);
          registry.getResponse(true);
          }
        catch( Exception ex )
          {
          System.out.println("Failed to invoke AppWorld client!");
          }
        }
    

    all this seems to work, except for one thing: I first to know 'number of App World ID' of the 'paid' version for all it actually works.

    So I just presented the paid version, in the hope that during the submission process I'll learn what "number of AppWorld" there; Alas, no luck. I still don't know the number and therefore cannot present the 'free' version

    Any tips?

    You can view the App Id if you go to manage products and you try to modify the presentation of the paid version. At the top of the first screen (information on the product tab), you will see the ID (it can not be changed)

  • Tool exlpode BOM in the specs of the formulation

    Question about the intended functionality of the Board explode tool in the specs of the formulation. Is the expected behavior when I select the entry be flattened makes for all child exit formula in this hierarchy relationships? When I choose BOM explode on an entry that corresponds to one expense of another form, it blows only this level. It is not exploded one of the other outputs child formula within the hierarchy. Is this expected behavior, or is supposed to do a complete Nomenclature flattened for the whole hierarchy?

    The current tool will only one level at a time.    While ease of use is a little annoying in situations where you don't want to flatten the hierarchy, the approach used currently gives you the most control of how much you want to go.  For example, you can have a form of low level that is not changing if you do not want to include more than just the output of this formula in your BOM.

    We have features on the roadmap that allows you to specify the number of levels that the system to go while being able to reconstruct a hierarchy so please submit an enhancement request with as much information in the use cases you want to cover so we can ensure that our new features do you need to do.

  • "Is:java.sql.SQLException error: ORA-01555: snapshot too old: rollback segment number with the name ' ' too small '.

    Hello

    We conduct apply CM which is a failure with the Error: "declared:java.sql.SQLException: ORA-01555: snapshot too old: rollback segment number with the name '' too small'."

    Its in our unique the production instance. I checked on the return parameter. Here are the details.

    SQL > show Cancel parameter

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    _in_memory_undo Boolean TRUE

    _undo_debug_usage integer 2

    UNDO_MANAGEMENT string AUTO

    UNDO_RETENTION integer 40000

    undo_tablespace string APPS_UNDOTS1

    SQL > select max (maxquerylen) of v$ undostat;

    MAX (MAXQUERYLEN)

    ----------------

    637116

    Please suggest what needs to be done to go further.


    Kind regards

    Prabhat.

    Post edited by: 942633

    Hello

    ORA-02067: the rollback transaction or registration required

    As mentioned, you will need to look at the design of the code:

    Error: ORA 2067
    Text: rollback transaction or registration required
    -------------------------------------------------------------------------------
    Cause: A failure (typically a trigger or a stored procedure with several updates remotely) has occurred, such as the execution of all or nothing from a previous call to Oracle cannot be guaranteed.
    Action: return to a previous point of backup or restore the transaction and resubmit.

    ------

    ORA-01555 caused by the following SQL statement (SQL ID: 5y0q4u8r2hdy9, query term s = 637608, SCN: 0x0bcc.4ed82762):

    ------

    ACTUAL SIZE [MB] UNDO UNDO RETENTION [s] NECESSARY UNDO SIZE [MB]

    ------------------------                   ------------------------------------------------------------------------- ------------------------

    304849 40000 267232.292

    To better help you, please let us know:

    -What is the function of this program.

    -Did you recently parameter changes until you have this error.

    Please ensure that the validation controls are implemented correctly, the DBA team and development will work hand in hand.

    Thank you &

    Best regards

  • automatically update in the formulation of materials?

    Dear Sir/Madam,

    When nutrition or the conformity of materials data changes, it should be updated in the formulation of a manually. then the CDC nutrition or compliance can roll in the output of formulation.

    Can you click once in the formulation and updating of all materials of automatic entry? How to implement this fuction?

    Thank you

    Terry

    Yes, you can update the change in formulation.  In the specifications of the formulation (in edit mode), click on tools-> refresh in the menu.

  • BSO to the conversion of the ASO - helps the formula of Member

    We have a BSO cube and it is converted to ASO. The account dimension has the attribute SOLDETEMPS properties, and therefore the time dimension cannot assign to either dynamic or multiple hierarchies because of which I'm not able to define formulas for Member in the time dimension to ASO, this requires the dimension to be either dynamic or more hierarchies to have member formulas. MDX scripts is the way to go I'm not very familiar with the scripts, MDX and its use. Please advise and also I would like to know if there is another way to solve this problem.

    do not use the properties of balance.

    You will need to take the time to be dynamic, created shared hierarchy similar to

    FOR A YEAR
    Jan shared
    Feb shared
    ......

    Then mark up your TB accounts with udas as TBFirst, TBLast, TBAverage.

    You have two options where you can join the MDX formula of time CDA/QTD or attach the MDX formulas to members of the account saying IIF YTD then make first/last/moy.

    You can choose between the two, if you have less number of accounts of TB, so I would say that set the formula to members as well as other members can obtain the value of CDA Member rolls.

    Concerning

    Celvin

    http://www.orahyplabs.com

    Please check the answers as useful/correct as appropriate

  • Can be passed to the formula of the procedure/function the column value?

    Cf_value is back after some calculation using the main request.

    Can be passed directly the value of column of formulas of procedure without assinged to placeorder?
    as below...


    f_convert(:cf_value,new_value);

    ---------------------------------------------------------------

    My procedure is...


    PROCEDURE f_convert (val1 val2 in number, number) IS

    BEGIN

    val2: = val1 * 100;

    END;


    If anyone knows pls answer me...

    In fact, if there is that other calculations he (in Proceudre)

    Can I used is like below?
    ---
    PROCEDURE f_convert (val1 val2 in number, number) IS

    BEGIN

    val2: = val1 * 100;

    return (val2);
    END;
    ----

    A procedure cannot return a value, the return in my previous post clause was part of the function for formula column.
    Let's say you have a column of forms of so-called CF_2, then the function because it will be like:

    function cf_2formula return number
    is
     val1 number;
     val2 number;
    begin
    
     val2 := :cf_1 * 100; -- or val2 := val1 * 100 --parameters not allowed in formula column function
    
     -- All the other code that you need inclusive of calling function, procedure as in any PL/SQL block can be placed 
    
     return (val2);
    
    end;
    

    Any calculation can be used in the service of the formula column

  • Addition of the formula to a calculation and obtaining incorrect results.

    I have a report to this list than the benefits paid by the company. One of the fields is the life to date ensures that is a maximum advantage of 233,00. If the amount calculated is more 233,00 233,00 is used. If this is not the smallest amount is used. Here's the formula. It works without any problem.
    <? choose:? >
    <? When: number (WW_DateEndOfPeriod1) > 233? > 233 <? end when? >
    <? otherwise:? > <? Number (WW_DateEndOfPeriod1). > <? end otherwise? >
    <? end to choose? >

    The problem occurs when I try to get a total of all the benefits. This calculation is added to the other benefits to get a total. However, he always adds 233,00 even if the amount to be used is less than 233,00. Therefore, if the provision is less than 233,00, total is added wrong. Here's the formula for this. You can see where is the problem?

    <? variable: WW_LTD01. xdoxslt:IfElse ((WW_DateEndOfPeriod1>233), 233, WW_DateEndOfPeriod1)? >
    <? WW_MEDICAL01 + WW_DENTAL01 + WW_K401K01 + 45.00 + WW_GROSS + WW_BASADD01 + WW_LTD01$? >

    PS WW_DateEndOfPeriod1 is the field of the life to Date. I don't know why my report writer assisned with this name.

    Thank you

    Rick

    I sent you the modified model. Take a peek inside.

    Thank you!

  • Static value in the formula for the column

    Hi all, I have a pretty simple question. How can you put a static value in a formula in the column? Just written a number does not work.

    You get the ODBC error because you are using the custom as a standalone field. Use in conjunction with any other field.
    For example: If the test then use your number field and date. then in the design of pivot, put date (set to the Max aggregation) measures and your number in the sections. This will work.

Maybe you are looking for

  • Satellite Pro R50-B-12N OCZ Vertex 460 has UEFI Install

    Hello world I'm having a great problem with tent to install an SSD in one of our Toshiba laptops and allowing the UEFI. Here is a brief summary of the components involved: OCZ Vertex 460 has SSD installed to replace the mechanical HARD drive. -SSD Fi

  • New HDD installed - Windows constantly asking for the product key

    HARD drive broke down, so I got a new HARD drive installed in the workshop for repairs a few months ago. Everything was fine until recently when Windows keeps always ask the product key to activate Windows. It is said that the license expires Dec. 27

  • Replace the DVD/CD-RW a DVDRW on Satellite 5000-204?

    I just bought a new NEC ND - 6650A mounted in my Toshiba Satellite 5000-204. It fits well, despite the wedge had to be cut in a corner, but everything fits perfectly. Before I bought it, I called Toshiba and they said, that it will not work, I would

  • dfsvc.exe has encounter a problem

    I recently reinstalled Windows XP for my 8400 DIMM and can't get the ethernet controller installed, or get updates.  The most recent error was when I tried to download a chip of the Dell site.  The error received is dfsvc.exe has encounter a problem.

  • What is the best way to send pictures to send?

    What is the best way to send a file of photos to email recipient?