Output not displaying in following order

create table ex1 (x number,y varchar2(20))
insert into ex1 values (100,'TW 5%');
insert into ex1 values (200,'KR 6%');
But i need result as
x y result
100 TW 5% 5
200 KR 6% 12
500 HK 8% 40
hi look at this

Hi,
As fobrich suggested store percentage value is a different column. It is not a good design store expression in column.
any ways you can get yuor result using this query. But this query will not work always time. Your expression contents might change. So this query will fail
SQL>SELECT * FROM t;
         X Y
       100 TW 5%
       200 KR 6%
2 rows selected.
SQL>SELECT X,Y, X* (TO_NUMBER(REPLACE(TRANSLATE(Y,'ABCDEFGHIJKLMNOPQRSTUVWXYZ% ','~'),'~')))/100
  2  FROM t;
         X Y                    X*(TO_NUMBER(REPLACE(TRANSLATE(Y,'ABCDEFGHIJKLMNOPQRSTUVWXYZ%','~'),'~')))/100
       100 TW 5%                                                                                             5
       200 KR 6%                                                                                            12
2 rows selected.
SQL>Regards

Similar Messages

  • Target costs not displayed in process order

    Hi,
    We have set up a small PI scenario. The issue we are facing is that the target costs are not displayed in the order. Actual costs appear after confirmation, but target costs appear as zero.
    We have maintianed cost relevancy in work centers, defined valid activity types, maintianed price in material master for all components and also run the standard cost estimate and released it.
    Please let us know what we are missing and why this error could be happening?
    Thanks in advance,
    Ashok

    Target costs are populated when you do the goods receipt. System will search for the released standard cost estimate and then apply that for each material component. If these 2 conditions are passed, then you will get target cost in order,
    You need to define the following,
    1. Variance Key - Transaction "OKV1"
    2. Assign that to Plant using "OKVW"
    3. Define Variance Variant using "OKVG"
    4. Define Valuation variant for WIP/Scrap calculation using "SPRO"
    5. Define target cost version by assiging sl no 3 & 4 and also how the cost calculation should be used.
    Once this activities are completed, execute production/process order and then after goods movement and some confirmations process Variance using "KKS2" as a period end activities.
    Edited by: sarin toms on Dec 2, 2008 2:26 PM

  • IPhoto event icons not displaying in chronological order. How do I fix?

    iPhoto event icons not displaying in chronological order. How do I fix?

    Have you explored the options under the View -> Sort Events menu?
    Regards
    TD

  • Goods issue document is not displaying in production order

    Hi Gurus, I am having problem That when I am doing goods issue in MB1A t code the document is posting but it is not displaying in production order.but when I am doing same goods issue in MIGO the document is displaying in Production order.when I am doing same goods issue in another plant with MB1A the document is showing.so where is the problem??is there any setting with plant and T code combination??what exactly is the error??why it is not showing in particular t code in particular plant.Please guide me.
    Thanks in Advance.

    Hi,
    Check in transaction OPL8 for the combination of plant and order type..is the below indicator are activated or not...
    Thanks
    Kumar

  • Header condition type value not displayed in sales order output

    Hi gurus,
    I have observed a strange issue regarding a header condition in a sales order.
    we have a set up like following:
    1. If the Header condition XXXX is used in sales Order then this value should be printed on sales order output.
    2. If the Header condition mentioned in above point is not maintained in sales order it should print the total price of all line items.
    Though i have maintained the header condition value in Sales Order Header its not displayed in SO output.
    That is , I have a sales order and it has one HEADER condition type entered with 3500 USD.
    In fact this value is used for some business purpose and is being printed on the sales order output for a specific output type.
    But where as in a sales order this header condition value is not getting printed on the output though I am using same data as of the sales order which is having the header condition value printed on its output.
    According to business,we must have the header condition value printed on  sales Order output.
    Please suggest how to proceed.
    Thanks in advance.

    Not sure if you are using costom smartform to print invoice, if yes then ask developer to debug and find the root cause and fix it.
    You might need to give him condition when it shuld be printed and when not.
    You can take reference of another output type for which it is printing

  • Output type attchment not displaying for sales orders

    Hi,
    Output type attachment is not showing form some orders NACE is perfectly configured 10 out of 100 not showing in
    output type as attachement rest of ordrs showing attafchemtns.
    How to do where to find out.

    Hi..
    Check Transaction " V/43" whether sales order output type and procedure are defined or not for a particular order type.
    Regards,
    Lokeswari.

  • Document library items are not displaying in sorted order in sharepoint 2013

    Hi,
    I have a document library , I am storing document sets on it.
    28326 items are there in the library.
    I have configured sort on Name columns. Initially items are displaying in sorted order like (A,B,C,D,E...)
    Now Items are not displaying in a sorted order it is displaying like (A, B,C,D,E,A,C...) like this.
    Please help me on this sorting issue.
    Thanks,
    Samir

    Are the documents displaying in your image inside the document sets?  If so then your sets (folders) are displaying in alphabetical order and the documents inside the sets are displaying in alphabetical order.  This is what i would expect.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Condition value is not displaying in sales order

    Hi Friends,
    when i am creating sales order, condition type(JEXP,JECP,JA1X..) is displaying in cond.type column and percentage(14%,2%,1%) is displaying in amount column and
    the condition value is not displaying in cond. value column in conitions tab of  sales order.
    In analysis it is showing as condition record found...
    please help me...
    with regards

    Hi,
    can it be that you have a problem with units of measure? Often, if there is no value in Condition value, the problem is in the master data of material. Did you use standard schema? If you not, have you tried it with standard schema? What is your value under "per" and "UoM"?
    Regards Thomas

  • Audiobooks are not displaying in numerical order on iphone. all mixed up.

    audio book contents which are in order from 1 to whatever number in itunes are now displaying in different orders on iphone now. how do I fix this? they are already in the order I want in itunes but not on the iphone

    I created a playlist (not a smart playlist) for the audiobooks I transfer to the iPod and they're STILL playing as if I had shuffle mode on. I've reported this as a bug, but who knows when Apple will get around to fixing it!
    I was hoping someone would have come up with a workaround but nothing works.

  • Servlet output not displayed properly in Internet Explorer

    Hi All,
    I'm developing a servlet which uploads a file. After the servlet parses the request body, it stores the file contents as a binary string in the database. While displaying the contents of the attached file, the IE(Internet Explorer) is ignoring all the newlines and spaces. IThe same uploaded file when viewed through Firefox browser is being displayed properly. I've added some debug statements to print the filecontent before sending it to servlet output stream. They look exactly as they were in the uploaded file. The MIME type is application/octet-stream.
    I've also made the response to accept "ISO-8859-1" and "UTF-8" charsets, yet the IE is not rendering the file contents properly. The code looks like this,
    response.setContentType("text/html; charset= ISO-8859-1, UTF-8");
    byte[] buff = attachment.getAttachObject();
    OutputStream out = response.getOutputStream();
    out.write(buff);
    out.close();
    I've tried using PrintWriter also. I've tried changing the content types, character encodings of request and response objects, still couldn't resolve the issue. What really baffles me is that when it's displaying properly in Firefox, why can't it render properly in IE? I'm using Win XP SP2, and IE version is 6.0.29. The content which is being sent to the output stream contains newline and space characters, but they are not displayed in the browser. Did any one face this sort of issue? Your help is highly appreciated.
    Thanks,
    Tarun.

    Hi,
    Thanks for looking into the issue. Let me tell you that I've tried keeping various content-types like text/plain, text/xml etc, but in none of those cases the IE rendered the output properly. But with the same content-type i.e text/html or text/plain, Firefox is able to render the file content properly. I've tried a brutal force approach like below,
    response.setContentType("text/plain");
    PrintWriter out = response.getWriter();
    String str = new String(attachment.getAttachObject());
    char[] buff = str.toCharArray();
    for(i=0;i< buff.length; i++)
    int n = (int)buff;
    if(n == 10)
    out.println();
    else
    out.print(buff[i]);
    out.close();
    I was trying to print a newline whenever I find a newline character in the file content. Even this didn't work. Please suggest me some way to get rid of this problem.

  • BED n other Taxes not Displaying in Purchase Order Printout.

    Hi MM experts........
    I had done the CIN configuration settings, system is calculating the tax correctly, but the problem, If I take a printout of Purchase Order its not displaying any taxes like BED, Ecess and SEcess.
    Can any one tell wht configuration setting I missed in my system.
    Thanks n Regards
    Durga

    Hi.....
    Thanks for your reply.
    Once we hve done CIN config settings it has to display those values, but y its not displaying ? Let me know wht settings abaper has to do ?
    Thanks and Regards
    Durga

  • Problem with Answers Chart Output Not Displaying Last Column, Bottom Label

    Good morning --
    I have created an Answers chart that has the following characteristics:
    - Bar chart
    - Should display approx 20 bars
    - Data is being returned correctly as a table
    What is happening is that the frame for the chart is too small -- as a result, three or four columns are not displaying (with the last one truncated partway into displaying). The default label at the bottom of the chart is also getting cut off.
    I have tried to manipulate the size of the container in the Compound View, but this does not help -- the graph expands or shrinks with exactly the same partially truncated set of bars. Added "cell padding" and just had more white space between the edge of the container and the truncated label / bar. I have tweaked the Graph Properties to no avail.
    Can you help?
    Thanks,
    Jason

    could it be because the chart is interpreting the values as text values instead of numbers? and 9 would then be much larger than ther other values? I'd try values without comma....tell it it's a numeric value like 12345.67.

  • How to display Column List (Search Bar - Do Not Display) in Ascending Order

    Hi,
    I am having a Interactive Report..
    In the Search Bar we have Select Columns, under that we have Do Not Display.
    where all the columns (currently not displayed) are listed.
    How can we display these columns in Ascending order
    Thanks,
    Deepak

    Do you want to display these columns in the IR?
    If yes. Select the column you want to display and click the the '>'.
    In the interactive report regions - source, where you have your query to select the columns use order by to sort them in assn order.
    Do you want to keep these columns as 'Do not display' and have them in assn order there?
    Select all columns to display and move the columns back to the 'Do not display' region one by one making selections in assn order.
    Or in the query select the columns in the order desired.
    I don't know if I am helping. I fell like I got your question all wrong. Still...
    Edited by: machan on Dec 11, 2009 11:01 AM

  • Pricing conditions are not displaying on purchsae order form

    hi.
    i am using zmedruck form,i am able to modify all and its printing properly,but pricing coditions at item level is not displaying ,if there is any solution for this let me know.
    Thanks in advance.

    yes u can write a subroutine in another program n call that from ur sapscript. u can pass the PO number from the script and use the logic accordingly in ur subroutine to get wat is required... u can refer the below example
    In script program,
    /:PERFORM GET_SBGRP_STEXT IN PROGRAM ZSDSCRIPT
    /:USING &GV_MATNR&
    /:CHANGING &GV_STEXT&
    /:TABLES INPUT_TABLE
    /: OUTPUT_TABLE
    /:ENDPERFORM
    In program ZSDSCRIPT,
    form get_sbgrp_stext tables intab structure itcsy
    outab structure itcsy.
    DATA: LV_MATNR LIKE MARA-MATNR,
    LV_TEXT(3) TYPE C VALUE 'ABC'.
    clear intab.
    read table intab with key name = 'GV_MATNR'.
    if sy-subrc = 0.
    lv_MATNR = intab-value.
    ENDIF.
    CLEAR OUTTAB.
    READ TABLE OUTAB WITH KEY NAME = 'GV_STEXT'.
    IF SY-SUBRC = 0.
    OUTAB-VALUE = LV_TEXT.
    modify outab index sy-tabix.
    ENDIF.
    endform.

  • TranslateMarkup output not displaying in design view

    Hi
    I'm trying to take a set of php pages which all follow a similar style
    <?php
    $p=new page();
    $p->rightCol=<<<RC
         SOME HTML GOES HERE
    RC;
    $p->mainContent=<<<MC
         SOME OTHER HTML GOES HERE
    MC;
    This then pulls in various other files (css, js etc) and renders on the website. I'm used to working with an IDE and hand-writing php code. My non-technical colleague would like to edit the html using WYSIWYG and is used to using DW. At the moment the html in the heredoc strings doesn't display in design view. I've been trying to rejig the pages using translators and can convert the above php into html which renders fine in a browser. The html output from the translateMarkup function doesn't display in design view. I think I'm probably fighting a losing battle (for instance I'm not sure how I'm going to make html editable in DW even if I can get it to render), but if anyone could explain why the html won't render I'd be very grateful. My translator is
    <html>
    <head>
    <title>Conditional Translator</title>
    <meta http-equiv="Content-Type" content="text/html; charset=">
    <script language="JavaScript">
    function translateMarkup(docNameStr, siteRootStr, docContent){
    //Find the right col stuff, delimited by <<<RC\n and RC;\n
    var regexRC=/<<RC([\s\S]*)RC;/;
    var regexMC=/<<MC([\s\S]*)MC;/;
    var rcContent = regexRC.exec(docContent)[1];
    var mcContent = regexMC.exec(docContent)[1];
    var ret = (getHeader()+'<main>'+mcContent+'</main><aside id="rightcol">'+rcContent+'</aside>'+getFooter());
    return ret;
    function getTranslatorInfo() {
      var transArray = new Array(6);
    transArray[0] = "LG_TRANS";
    transArray[1] = "Translates for LG";
    transArray[2] = "1";
    transArray[3] = "php";
    transArray[4] = "0";
    transArray[5] = "allFiles";
    transArray[6] = "50";
    return transArray;
    function getHeader() {
      return '<!DOCTYPE html><html><head><title>TEST</title></head><body>';
    function getFooter() {
      return '</body></html>';
    </script>
    </head>
    <body>
    </body>
    </html>

    unless there's any way of rewriting the files before upload and download (ie dynamically rewrite the php pages as html before dreamweaver opens them, then rewrite them back as php before they're uploaded - I'm clutching at straws).
    I believe that this should be possible but I'm definitely not a DW extensionologist so I couldn't say for sure. Also, I believe that the tricky part would be the last step -> WYSIWYG edits back to PHP, which may well be impossible.
    If you want to talk to someone who knows DW inside out, contact the guys at http://www.projectseven.com. They are excellent.

Maybe you are looking for

  • "Your Ipod Cannot Be Read From Or Written To"

    I brought my sister a 30 gb ipod video for her birthday and im putting music on it and getting "Your Ipod Cannot Be Read From Or Written To" this error message. Does anyone know what to do or how to fix it??

  • Satellite Pro A200: How to reboot from hibernation

    I must be an idiot. I set on/off button of new Satellite Pro A200 to activate hibernation. Then set BIOS password. Despite password correctly entered, it will not start windows. Nor can I shut down laptop by holding down the on/off button to force re

  • Image search results?

    I'm wondering if this typical image page from this web site would appear in Google image results. Should an H1 be added or anything else to the page. Could the caption be an H1? http://dankennedy.ca/images/dust_of_oblivion/thousands-of-mules.html

  • Access COM Port through Forms 6i

    Dear all, How r u??? I want to connect hardware (i.e. IR devices) with COM port. And want to access through Forms. I have done it before in .NET technology but at this time i want to do this in Oracle Forms. Kindly reply me for this.@ [email protecte

  • IPhone $100 Process

    I would like to know why if you can SMS me a code for my $100 STORE CREDIT, why with my .mac, A&T, and SMS functions you could not have told me throught the iPhone how the try to get back my money. Please do not try to blame AT&T for their POOR netwo