To find the bonus amount

hi everybody,
i need to create column bonus in a table and to enter the value as bonus=(salary+10%) every time when i create it shows an error.
eg:
salary bonus
==== =====
500 550
1000 1100
which means we calculate the bonus from the salary and add 10% from the salary.

Hi,
1009262 wrote:
hi everybody,
i need to create column bonus in a table and to enter the value as bonus=(salary+10%) every time when i create it shows an error. What command are you using to create it, and what is the error message that it shows? Post them. It's very hard for me to say what you're doing wrong when I don't know what you're doing.
>
eg:
salary bonus
==== =====
500 550
1000 1100
which means we calculate the bonus from the salary and add 10% from the salary.Which is
1.1 * salaryAs the others have said, it sounds like a virtual column would be better than a regular column, assuming you're using Oracle 11, and that the bonus is always determined by the salary (or something in the same row), with no exceptions. You can find examples of how to declare and use virtual columns in the SQL Language manual

Similar Messages

  • Report to find the retainage amount per each supplier site

    Hi All
    Is there a report to find the retainage amount per each supplier site ?
    Regards;

    Hi.
    The Withholding Tax by Supplier Report shows both supplier and site.
    Octavio

  • Where can i find the wall amount for 610 1201

    where can i find the wall amount for 610 1201
    This question was solved.
    View Solution.

    c0rnel wrote:
    Can you give me more descriptions on what a 610 1201 is?
    Monitor? TV? What brand?
    Not having very much luck finding the product you're describing but i'm more than happy to assist you with this.
    I would assume since the OP is posting in the Touchsmart forum they are referring to the Touchsmart 610-1201 computer, no idea why you can't find it, the OP gave all the correct information.
    OP you're probably looking for the #VK554AA adapter, but you will still need an additional VESA wall mount.
    Google for "touchsmart wall mount adapter for vesa wall mount" and you'll see the many sources for this part.

  • Find the same amounts

    Hi All,
    I have this sample data:
    create table sampleTable(
    sample_id number,
    sample_fy number,
    sample_amt number
    insert into sampleTable(sample_id, sample_fy, sample_amt)
    values(1, 2003, 25);
    insert into sampleTable(sample_id, sample_fy, sample_amt)
    values(1, 2004, 10);
    insert into sampleTable(sample_id, sample_fy, sample_amt)
    values(1, 2005, 10);
    insert into sampleTable(sample_id, sample_fy, sample_amt)
    values(1, 2006, 46);
    insert into sampleTable(sample_id, sample_fy, sample_amt)
    values(2, 2003, 5);
    insert into sampleTable(sample_id, sample_fy, sample_amt)
    values(2, 2004, 12);
    insert into sampleTable(sample_id, sample_fy, sample_amt)
    values(2, 2005, 10);
    insert into sampleTable(sample_id, sample_fy, sample_amt)
    values(2, 2006, 6);
    insert into sampleTable(sample_id, sample_fy, sample_amt)
    values(3, 2003, 75);
    insert into sampleTable(sample_id, sample_fy, sample_amt)
    values(3, 2004, 13);
    insert into sampleTable(sample_id, sample_fy, sample_amt)
    values(3, 2005, 13);
    insert into sampleTable(sample_id, sample_fy, sample_amt)
    values(3, 2006, 26);
    How can I find the rows with same amounts (amt) for the same sample_id and years between 2004 and 2005?
    The result should be:
    sample_id
    1
    3
    I try lead, but it is comparing rows from different sample_id as:
    SELECT sample_id, sample_fy, sample_amt,
           LEAD(sample_amt, 1, 0) OVER (ORDER BY sample_id, sample_fy) - sample_amt AS my_diff
           FROM sampleTable
           WHERE sample_fy between 2004 and 2005;
    Any ideas?
    Maybe is another function that I can use.
    Thanks!

    Hi,
    I would use GROUP BY:
    SELECT    sample_id
    FROM      sampletable
    WHERE     sample_fy  IN (2004, 2005)
    GROUP BY  sample_id
    HAVING    COUNT (DISTINCT sample_fy)  = 2
    AND       COUNT (DISTINCT sample_amt) = 1
    This does not assume that there will be esxactly 1 row for each combination of sample_id and sample_fy.  A given sample_id may be missing one year or the other (in which case it will not produce any output), or there may be multiple rows per year (in which case, the sample_id will be chosen only if all they are all equal.  I assume sample_amt can not be NULL).
    If you want to use LEAD, add a PARTITION BY clause:
    SELECT  sample_id, sample_fy, sample_amt,
            LEAD(sample_amt) OVER (
                                    PARTITION BY  sample_id    -- This line added
                                    ORDER BY      sample_fy    -- No point including sample_id
                                 ) - sample_amt AS my_diff
           FROM sampleTable
           WHERE sample_fy between 2004 and 2005;
    "PARTITION BY sample_id" means that a separate computation will be done for each group of rows that has the same sample_id.

  • How to put sales incentive bonus % amount and the period in oracle

    How do I put in the sales incentive % and the period?
    we put in the bonus amount (I know how to do that in Oracle), but I cannot find where to do my inputs for the % and the period concerned (all sales incentive bonuses are paid over certain quarters of the year – e.g. I now have to make inputs on the sales incentive bonuses for quarter 1 till 3). It is essential for us to track amounts, % and period.
    We also had this opportunity in People Soft and I assume that we do have that in Oracle
    any help would be highly appreciated
    thanks in advance

    some more context would be useful. Are you implementing core payroll, or CWB, or you just want to store these sales figures in basic HR? Or self-service?

  • Once Bonus amount has been paid,still it has been deducted from salary

    Hi all,
    We have paid bonus to eligible employees in off-cyle in October. When we ran their regular payrun for October, found that their salary has been deducted exactly by the bonus amount paid. We can see in RT that "/552 - Net Stat subseq adjustment" with bonus amount has been found. As a result of which their home take salry mismaches with "earnings less deduction" in the payslip. Why bonus amount has been deducted from salary once it has been paid?
    Suitable answers will be rewarded.
    Thanks
    Rajesh

    hi rajesh.
    this is due to the termination action you have performed in your company.( i presume that you have terminated the employee, if not you should follow as guided below)
    the employee left on 10th october and
    the bonus is paid on 21st october.
    in sap it is not accepted but in real it will be happend.
    but still you have a solution for this
    you have to terminate the employee with effect of 10th october and remember you have to modify the payroll status infotype " run payroll up to" should be maintained with the date on which the bonus is paid.
    in your case it should be 21-10-2008.
    ok
    when you perform offcycle payment of bonus with the specified date, system will pay that amount.
    feel free to ask me anything further.
    regards,
    rashmi.

  • VBA Macro Vlook Up & highlight the matching amounts

    Hi Experts,
    I have spreadsheet in which 3 columns are in use A,B and C
    Requirements
    1. If there is an amount in column A and the count for the amount is more than 1 than all the similar amounts should be colored Pink.
    2. VLookUp : Perform a Vlookup  for finding the matching amounts of column A in Column B for whatever amounts a match is found those records should be copied in column c in the row where we have the column A amount and whatever amount are not found
    should be marked with #N/A
    Please find a sample below .
    Data-A
    DATA-B
    VLOOKUP
    15001
    15002
    15001
    15002
    15001
    #N/A
    15003
    15003
    15003
    15004
    15004
    15004
    15005
    15005
    15005
    15006
    15006
    15006
    15007
    15007
    15007
    15008
    15008
    15008
    15009
    15009
    15009
    15010
    15010
    15010
    15011
    15011
    15011
    15012
    15012
    15012
    15013
    15008
    15013
    15014
    15009
    15014
    15015
    15010
    15015
    15016
    15011
    15016
    15017
    15012
    15017
    15018
    15013
    15018
    15018
    15014
    15018
    15019
    15015
    #N/A
    15020
    15016
    #N/A
    15021
    15017
    #N/A
    15022
    15018
    #N/A
    Thanks
    Priya

    1. Select the data in column A.
    On the Home tab of the ribbon, click Conditional Formatting > Highlight Cells Rules > Duplicate Values...
    Click OK.
    As a macro:
    Sub Macro1()
    Dim rng As Range
    Set rng = Range(Range("A1"), Range("A" & Rows.Count).End(xlUp))
    With rng.FormatConditions
    .Delete
    With .AddUniqueValues
    .DupeUnique = xlDuplicate
    .Interior.Color = 13551615
    .Font.Color = -16383844
    End With
    End With
    End Sub
    2. I don't understand why C2 should contain #N/A - the 15002 in A2 matches the 15002 in B1.
    Apart from that: enter the following formula in C1:C23 and confirm it with Ctrl+Shift+Enter to make it an array formula:
    =VLOOKUP(A1:A23,B1:B23,1,FALSE)
    As a macro:
    Sub Macro2()
    Dim rng As Range
    Set rng = Range(Range("A1"), Range("A" & Rows.Count).End(xlUp))
    With rng.Offset(0, 2)
    .FormulaArray = "=VLOOKUP(" & rng.Address & "," & _
    rng.Offset(0, 1).Address & ",1,FALSE)"
    .Value = .Value
    End With
    End Sub
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • How to arrive the Receipt amount total same as receipt register

    Hi All,
    The client have a requirement to find the total amount of the receipts for a month. there is a small indifference from the total arriving in receipt register and the query we have written. can any one say on what condition we can arrive the receipt amount same as receipt register.
    we are in 11.5.8 version
    the query we used to find the receipts
    SELECT TYPE, currency_code, customer_number, functional_amount
    FROM ar_cash_receipts_v
    WHERE gl_date BETWEEN TO_DATE (:p_from_date || ' 00:00:00',
    'DD-MON-YYYY HH24:MI:SS'
    AND TO_DATE (:p_to_date || ' 23:59:59',
    'DD-MON-YYYY HH24:MI:SS'
    AND receipt_status NOT IN ('REV', 'STOP')
    UNION ALL
    SELECT TYPE, currency_code, customer_number,
    (-1 * functional_amount)
    FROM sona_ar_cash_receipts_v
    WHERE reversal_gl_date BETWEEN TO_DATE (:p_from_date || ' 00:00:00',
    'DD-MON-YYYY HH24:MI:SS'
    AND TO_DATE (:p_to_date || ' 23:59:59',
    'DD-MON-YYYY HH24:MI:SS'
    AND receipt_status = 'REV'
    Regards

    Well, what I did is use the an actual Oracle form - Receipts Summary inquiry form. I inquire on what I want to find on that, then can export from there to excel. Then I would start with the AR_CASH_RECEIPTS_ALL table as my starting point for data. This will contain both Cash Receipts and Miscellaenous Receipts, so you have to be careful in your data selection, depending on what you want to compare against.
    Another possibility is to use this report to reconcile against - Oracle Deposited Cash Report - Applied Detail. Now this is based on deposit date rather than receipt date, so that could be a problem.
    If I remember correctly about the receipts register, it is distributions (G/L date) based. So it includes reversal activity for receipts that happened in a prior period, and will include receipts that are reversed in a later period. That is why your amounts are probably off a bit.
    As usual, you have to test carefully to make sure you end up with the correct data.
    So a couple of things to consider.
    John Dickey

  • How to find the amount of free disk space on my pc....... in java of course

    how to find the amount of free disk space on my pc

    http://onesearch.sun.com/search/onesearch/index.jsp?qt=free+disk+space&subCat=siteforumid%3Ajava31&site=dev&dftab=siteforumid%3Ajava31&chooseCat=javaall&col=developer-forums

  • I just downloaded itunes 11.. and now i cant find out how to display duplicates and also it doesnt show the total amount of songs in my library...anybody know..???

    I just downloaded itunes 11 and now i cant find the display duplicates..and it doesnt show the total amount of songs in my library..anybody know..??

    Two Windows scripts to make playlists of Duplicates and Exact Duplicates. Use shift-delete to remove selected tracks from the library as well as the playlist.
    There is also my DeDuper script if you don't want to do it by hand. Please take note of the warning to backup your library before deduping. See this thread for background.
    tt2

  • I need to find out dollar amount on iTunes "Give any amount" gift cards I purchased, store clerk did not write down the amounts

    I need to find out dollar amount on iTunes "Give any amount" gift cards I purchased at CVS, store clerk did not write down the amounts when I purchased.

    Without scratching them off to get the numbers and redeeming them there is no way for you to do so. You could go back to CVS and see if they can get the data from their computer or see if your receipt helps.

  • Couldn't find the amount in Goods Rcpt Analysis REM(mcp8)

    Hello there, i got a extremely emergency question here,
    i used mfbf to do assembly backflush and after that,1000buc
    water's metieral document was generated.everthing is done perfectly till this time.
    but when i used mcp8 to check out the figure after doing mfbf,
    i couldn't find the amount i have done.dunno what's the problem there.
    can you help me??

    Hi,
    MCP8 transaction code gives following information;
    (1) GR Qty
    (2) Actual Scrap
    (3) Order Qty
    (4) Scrap Qty
    To get a value, you have to write a Query using SQVI or through ABAP
    PS: Post this query in PP Forum to get a quick reply.
    Bye,
    Muralidhara

  • I spilled a small amount of wine on my macbook pro, I know, killing myself over this! I dried it fully but 24 hours later the keys are very sticky and it won't find the Bluetooth module - everything else seems to be working fine. Thanks for any tips!

    I spilled a small amount of wine on my macbook pro keyboard, I know, killing myself over this! I dried it fully but 24 hours later the keys are very sticky and it won't find the Bluetooth module so I can't use my magic mouse - everything else seems to be working fine. Thanks for any tips!

    Your keyboard will never be right again; it needs to be replaced. There's no effective way to clean sticky stuff out of it. Your Bluetooth module may have been shorted out and destroyed, and it probably isn't dry yet after only 24 hours.
    Take your machine in for repair, and expect a hefty bill in the hundreds of dollars.

  • How to find the number of Z or Y programs and amount of code lines?

    hi all, I'm trying to find the number of programs on user namespace (Z* or Y*) and the number of coded lines in them. something like report Z_MY_REPORT, lines 582; Include Z_MY_INCLUDE, lines 135.
    Exist any standard report to do it or do I have to develop it by myself?
    thanks for any suggestion.

    If you have to do in urself
    DATA: i_reptx TYPE STANDARD TABLE OF textpool WITH HEADER LINE.
    READ TEXTPOOL 'ZJ_ALV' INTO i_reptx.
    and describe the itab.. and get  the lines.
    In conjunction with TADIR table to get the program repository.

  • HT201272 I spend a considerable amount of time in Asia and am finding the ability to download previous purchases now shown on my iCloud account.  Music appears fine and most movies are OK but I have problems with all music videos included with album purch

    I am finding the ability to download previous purchases now shown on my iCloud account to be difficult.  Music appears fine and most movies are OK but I have problems with all music videos included with album purchases.  Any ideas?

    Phillip_dc wrote:
    Firstly, I purchased my first iPhone a few years ago, since then there have been a lot of apps released, a lot which I downloaded for free, tried and deleted from both my phone and my iTune 'Apps' Panel. What bothers me is when I do get a new iOS device, iPad and/or iPhone 5, and I don't want to just copy the back-up of my current iOS device to the new one, then to get the apps I want I will have to scroll through countless useless 'trash' applications in my purchase history to 'cloud download' the ones I want.
    Just sync the apps you want from your computer. You don't need to redownload them directly on the iPhone Purchased list.
    Will Apple be employing such a feature, a 'permanently delete/un-purchase' feature?
    Dunno.
    Send suggestions here -> http://www.apple.com/feedback/

Maybe you are looking for