Result for one Function und one titel in one colum

Hello,
it is possible to put one result form a function and another colum in only one colum?
Thank you, very much :-)
Chris from Germany

Sure:
SQL> create or replace
  2  function f1(n number)
  3  return number
  4  is
  5  begin
  6  return n;
  7  end;
  8  /
Function created.
SQL> select ename,f1(sal),comm,f1(sal) + nvl(comm,0) from emp
  2  /
ENAME         F1(SAL)       COMM F1(SAL)+NVL(COMM,0)
SMITH             800                            800
ALLEN            1600        300                1900
WARD             1250        500                1750
JONES            2975                           2975
MARTIN           1250       1400                2650
BLAKE            2850                           2850
CLARK            2450                           2450
SCOTT            3000                           3000
KING             5000                           5000
TURNER           1500          0                1500
ADAMS            1100                           1100
ENAME         F1(SAL)       COMM F1(SAL)+NVL(COMM,0)
JAMES             950                            950
FORD             3000                           3000
MILLER           1300                           1300
14 rows selected.
SQL> SY.

Similar Messages

  • MC+E Report not giving results for One Plant

    Dear All,
    I am executing MC+E standard report for four plants but I am not getting the output for one plant. This report fetches data from the table S001 while executing VA01. I checked that there are no entries for that plant in this table hence obviously I cann't get the output.
    Can anyone suggest me where lies the problem. My SD consultant is able to generate invoices, but the result of VA01 are not getting reflected in S001.
    Regards,
    Alok.

    Dear Alok,
                   Same was the problem with me, one of my seniors helped me with it. The report does not reflect data for the other one, as somebody may have made changes to the standard Info Structure.Probably a 'Z' or 'Y' update group is mainatined and proper update rules are not attached to the info structure. Ask you SD consultant to check out the update rules. It is a big risk to make changes to the info structure as it may lead to loss of Master and may stop functioning of SAP across modules. Ask a expert from SD to work onto it.
    Reagards,
    Ashutosh
    [email protected]

  • BEx report -two different calculations for a result for one key figure how?

    All,
    Maybe someone could help me with the following, we have a requirement to setup for one key figure two calculations for result rows. One result (average) for one level, and on a higher level -grand total have a (sum), as for our business it makes sense to do it this way. We have setup average for this KF, we get correct results (see below values 7,5 & 6,5) however for the grand total (across multiple products) so for one level up we need to have a different calculation. How could we achieve this?
    Here is an example:
    location     product          inventory     
    AAAA     11111          5     
    AAAA     11111          5     
    AAAA     11111          10     
    AAAA     11111          10     
    AAAA     Result          7,5      ---> average
    AAAA     22222          5     
    AAAA     22222          6     
    AAAA     22222          7     
    AAAA     22222          8     
    AAAA     Result          6,5       -
    > average
    AAAA     Result (across products)          14      ---> here I want to have a sum of averages

    This could be achieve only IF you upload a hierarchy for product inventory with different levels, wherein each level show subtotals and finally grand total will be shown at the end of the results.

  • Different results for one query

    Hi,
    Today i got a very surprising issue with SQL 2008, my one team member inform that a single query is resulting two different data set from two diff-diff SSMS's query windows.
    Query is like this,
    Select * from table1 where trandate between '2014-08-02 00:00:00.000' and '2014-08-03 23:59:59.999' and status='S'
    in one query window its showing 295 records while on same desktop in second query window its showing 602 records.
    Please let me know where is problem. [:)] 
    Thanking you.
    Virendra Yaduvanshi
    Principal DBA, 
    MCTS, MCITP
    http://wikidba.wordpress.com
    Virendra Yaduvanshi http://wikidba.wordpress.com/

    Are updates occurring that are modifying the data or do you get the same results in each window multiple times?
    One thing to do is look at the actual execution plans and see if they are identical.
    If parallelism is involved, try disabling it and see if the results change (I've seen some twitchy things happen with it)
    If all of that checks out it may be some implicit conversion is happing to the date or there is  a case sensitivity issue with the 'S'

  • Do not display the overall result for one KF

    Hi,
    Question is in the title, here is an explanation of what I want to get with a simple BEx query (without adding extra vba)
    2 KF : KF1 and KF2
    2 Caracteristics : let's say 0PLANT and 0CALMONTH
    0CALMONTH is displayed in line, 0PLANT in column
                         overall result    1701    1709    1710
    0calmonth        KF1               KF2      KF2     KF2
    01.2009           xxx               xxx       xxx     xxx               
    02.2009           xxx               xxx       xxx     xxx
    03.2009           xxx               xxx       xxx     xxx
    Basically what I want is to KF1 only for the aggregation of all plants and I want to display KF2 for each plant
    Do you think this is possible ?
    For now I only succeed in getting 
                         overall result    1701    1709    1710
    0calmonth        KF1  KF2      KF2      KF2     KF2
    01.2009           xxx               xxx       xxx     xxx               
    02.2009           xxx               xxx       xxx     xxx
    03.2009           xxx               xxx       xxx     xxx
    I checked the forum for a while and did not find the answer (zero suppress do not work on result)
    Thanks for you help,
    rgds,
    Sebastien

    Hi,
    I didnt get exactly for what you are looking for ,
    Chars : 0Plant, 0Calmonth....put these two in two new selections by creating a new structure in Rows
    KF:        what ever the KFs you need put them in Columns in a structure,
    then enable the Cell Reference, now you can hide the KF results by cell wise and/or column wise however you need,
    Regards
    ReddY A

  • Overall result in Query designer displaying ' * ' for one kf when executing

    Hello
    I have a got a kf in which value ' * ' is getting displayed when i have done display overall results for one of my chars. Now what i am hoping is that this can be because there are too many records in the display and the total is too huge and that is the reason it is disaplying * in it. Please can somone guide me if there is some setting that can be done

    Hi Tom,
    This is because you have different unit or currency in the data record and you can not sum it if they are different unit/Currency therefore system is showing you *.
    You can try NODIM(KF) and see if it is adding or try currency or unit conversion at query level so that all records in the query have same unit/currency.
    Regards,
    Kams

  • Find not working in GW 7 for one user

    The Find option does not show any results for one user. It works on Archived items. The user does have 14,000 sent items alone. Any step to take to fix this issue without having to recreate their account. Ran an analyse/fix and structural rebuild that didn't work.

    You could try going into the Display Properties of any folder, select the
    Find Results entry from the list and press Delete. Sometimes that entry
    can get corrupted and needs to be recreated, which will happen next time
    you run a Find.
    Cheers Dave
    Dave Parkes [NSCS]
    Occasionally resident at http://support-forums.novell.com/

  • QM - Record Results for Physical Sample

    Hi Gurus!
    We are working with sample drawing procedure and when the inspection lot is generatee the physical samples are created too. So, when I record result for one of them and I try to UD the system shows me all characteristics like pending for other phisical samples that I didn´t record the results. I mean, I would like to record just one phisical sample of them. I was wondering if you could inform me there is any way to do it? I am working in release 5.0 from SAP
    In advance I would like to your attention,
    BR
    Valdevair

    If you only want to record values on one sample why are  you creating a sample drawing procedure that requires more?  If you don't use them but just collect them, set them up as reserve samples.
    FF

  • Function Module or table to read all EQUI for one KUNNR

    Hello,
    i need to read all Equipments for one specific KUNNR (endcustomer).
    Is there a function module which could be used?
    Or what is a good select for this?
    Thanks a lot.
    Kind regards
    Manfred

    Hi,
    EQBS table will be getting updated based on the Delivery document or while creating equipment for Material & Serial no combination.
    How you are maintaining End Customer in your Equipment Master?
    You can maintain in Partner Function or Sort Field or through automatic equipment creation.
    Based on that, you have to find the logic.
    Regards,
    Maheswaran.

  • There were no results for If i buy locked iphone 5s( verizon) from usa can i use it in india ..and when i buy this ph is this mandatory that i have to choose the carrier plan....and one more qs after unlocking still the warenty is valid..plzz tell me offi

    There were no results for If i buy locked iphone 5s( verizon) from usa can i use it in india ..and when i buy this ph is this mandatory that i have to choose the carrier plan....and one more qs after unlocking still the warenty is valid..plzz tell me officialy unlocking procidure in details...thank you..in advance...

    Your question has been answered.  Jailbreaking cannot be discussed here.  If you buy a phone locked to a carrier, it would be down to them to unlock it, and that's very unlikely if you've only just got the phone.  Locked phones are "cheap" for a reason - you're signing up for a contract and that subsidises the cost of the phone.

  • IMovie less than an hour. share to iDVD failed. read to share to media browser. worked for one movie. tried on different one and iDVD hung up and had to use force quit to get out of it. tried several times -- same result. suggestions?

    iMovie less than an hour in length. share to iDVD failed. read in support to share to media browser. then made DVD through iDVD. worked for one movie. tried on different one and iDVD hung up and had to use force quit to get out of it. tried several times -- same result. suggestions?

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

  • Smartview functions very slow - even for one cell.

    We have several Smartview functions spreadsheets that are running very slowly. I took one and removed everything except for one cell that with the hsgetvalue formula, and the cells that it links to to get the point of view. It either takes about 10-20 seconds to refresh or gives us error 12030 and does not refresh.
    Other spreadsheets seem to have no problem refreshing, even if they are quite a bit larger.
    Have any of you seen anything like this? Any ideas?

    It could be some type of network connectivity issue.
    If you install Fiddler2 (http://www.fiddler2.com/fiddler2/), you can see the actual communicatiosn from Smartview and the web server running smartview. If you get an immediate response between the request and the response, then something is probably going funny inside of Smartview on your machine. If the response to the data request from Smartview is taking a long time, then I would investigate teh server to see if there are any resource issues, etc.
    It won't immediately give you the cause; however, it will help you narrow some things down.
    Charles

  • I have been using apple iphone five s from du and it has some problem i have given it to the service center but they said your phone is locked by apple and i have given one week for result its one week already no response from apple which make me disgusti

    i am here to share my feeling about apple and its co partner
    i have been using apple iphone five s since five month i am happy with it but recently my iphone have some problem with its ear pices then i went to apple service center in abu dhabi
    they took my phone for one day and tell me come for next day all will be okey
    when i went to next day they say that your iclould account has been locked by apple so you need to wait for one week time
    i have already a week and now when i went to meet them today they said just wait till apple reply to them and they are still waiting for that
    what the disgusting situation can any one wait to have their phone for fifteen days in this world
    such a well known company might not be given such a poor service
    where can i contact for that please advice me

    If there is a problem with your AppleID, you - and not the provider - must
    straighten out the matter.
    AppleID disabled:
    http://support.apple.com/kb/TS2446
    http://www.apple.com/support/itunes/contact/
    https://getsupport.apple.com/Issues.action

  • HT204407 "Location Not Available" label for one friend and they have the same result for finding me. The issue has not been resolved from reading this article.

    I always get 'Location Not Available' for one of my contacts in the Find My Friends app. This same friend get's the same message when trying to find me. The app and the iOS software on both iPhones is up to date, the dates and time on both iPhones are correct and both iPhones are in the UK where the Find my Friends service works fine.
    There is one condition in which we can see where each other is and that is by having the app open on both phones, this is unlike all my other  contacts within the Fnd my Friends app where I can see where they are despite the app not being open on their devices. Can anyone help? It's really bugging us.

    For those who are experiencing ongoing issues with their web services, you can attempt to try the following steps that may
    help resolve your problems.
    1.) Completely shut down your printer and restart it
    2.) If you have prints that have not printed, log into ePrint Center (or create an account if you do not have one) and
    then look for your printer status. If printer status is green but you still have pending jobs, delete the pending jobs one at
    a time (Starting with the oldest first). There may be a print job stuck in the queue that further restricts other jobs from
    completing.
    a. If option 1 or 2 above still doesn’t work, removing web services and re-adding web services will cause the printer to
    reattach to the cloud.
    b. Please note that if you attempt option 3, you will get a new eprint email address (and lose your custom one with no
    ability to get it back) furthermore, you will need to re-add your printer back to your ePC account.
    I am an HP employee

  • Inspection results for more than one lot

    How do i see inspection results for different lots of the same material together in a single screen. Is there any standard report or query available in SAP?
    Prahlad

    Dear Prahlad
    You can see it in ways
    1) Go to QS28. Input the plant and the mic and execute. You will get MIC details. Choose the MIC and click on Result history. A pop will appear Result history Limit Selection. In the Time Tab you can see inspection lot selection date From and To. Execute you will get the entire list of lots
    3) Go to QA33 > result> Select the Mic> go Result historyhistory >In the Time Tab you can see inspection lot selection date From and To. Execute you will get the entire list of lots with all values and charts
    4) standard reports such MCXD,QGP1 can be used
    Hope this helps
    Regards
    gajesh

Maybe you are looking for