set values for numbers in the precision and scale

Hello.

I have a column named total amount by which the total showed up as 999. I want to show resembles 999.99.

Amount total is a database column.

My query:

Select

p.PRODUCT_ID,

PN.product_name,

p.PRODUCT_QTY,

p.unit_price,

p.TOTAL_AMOUNT

OMS_SHIP_CART_DETAIL p, pn OMS_PRODUCT

where p.product_id = pn.product_id

and user_id = 1

Run it below and check the last column.

Select

p.PRODUCT_ID,

PN.product_name,

p.PRODUCT_QTY,

p.unit_price,

TO_CHAR (p.TOTAL_AMOUNT, '99999999999999.99') Total_amount

OMS_SHIP_CART_DETAIL p, pn OMS_PRODUCT

where p.product_id = pn.product_id

and user_id = 1

In running this you can print your 999.00 value, if the value of your database is 999.

Is there a reason why you want to do like 999.99, which would be incorrect according to the value of the database

Tags: Database

Similar Questions

  • How to set different fonts for numbers in the titles and tables of contents

    Hello

    I noticed some people to use a different font for the numbers in the titles and tables of contents to get an extra magic. Is it possible to automate the use of fonts in paragraph styles?

    Oh and suggestions on which fonts would be a good thing for numbers?

    Thank you!

    Furthermore, you must doany of this fancy stuff if you use an OpenType font that made OSF glyphs (and if you are not you will need to set the font as part of your style). Just head on to the style definition and enable OSF there OpenType features section.

  • I bought the first elements 13 and 13 Photoshop elements according to a trail. I received 1 set of serial numbers to activate Photoshop and 2 sets for first. However, after you type in the first series of numbers for the first, there was no place to type

    I bought the first elements 13 and 13 Photoshop elements according to a trail. I received 1 set of serial numbers to activate Photoshop and 2 sets for first. However, after you type in the first series of numbers for the first, there is no place to type in the second set. How can I check if the first has been correctly activated?

    You get usually just a serial number by program... a list of 24 numbers, 6 sets of 4.

    Click the icon of the program and see if it boots without asking for a serial number.

    If it is not running now, please contact support:

    To contact support, please click the link below, click on the still need help? option in the blue box below, then choose the cat. Make sure you are signed in with your Adobe ID, have cookies enabled and have deleted your cookie cache.  If you have any questions, try another browser.

    Serial number and activation support

    Guinot

  • How do I do to get the slide to set up to go to the right and continue? I was up half the night and is not wrong. The only thing that I just did is plugged into the wall outlet and now I'm right back where I had problems. Why keep this product?

    How do I do to get the slide to set up to go to the right and continue? I was up half the night and is not wrong. The only thing that I just did is plugged into the wall outlet and now I'm right back where I had problems. Why keep this product?

    What do you exactly mean by "get the slide to set up go to the right and continue"? Can you give us a little more context and detail?

  • Problem with the latest adapters of goal for the F5 for B4 lenses - the B4S16PL and the LAFZP12PL.

    I just got the latest adapters of goal for the F5 for B4 lenses - the B4S16PL and the LAFZP12PL. I have them sitting correctly, but they will not allow my lenses backfocus. What is the problem here?

    Do you mean that you cannot physically use the backfocus on lenses, or you can not get the correct backfocus?

    The correct backfocus with these cards, if they like the others I used it, will be very different from that of the correct backfocus on a camera usually 2/3 "

  • I've updated for picture with the captain and when I plug in my iPhone it loads the same pictures twice each time how it stop loading the same things every day?

    I've updated for picture with the captain and when I plug in my iPhone it loads the same pictures twice each time how it stop loading the same things every day?  I tried to make the old default iphoto but picture still open when I plug in my iPhone?

    I tried to make the old default iphoto but picture still open when I plug in my iPhone?

    When the iPhone is connected and Photos opens, select iPhone in sideba of the windowr of Photos. Then, uncheck the option 'Open for this iPhone Photos' below the toolbar.  Do this for all your iPhones. The hook should be unmarked for each device individually.

  • I lost the ability to grasp the corners of the boxes and scale... Help!

    The base, Illustrator CS3 Mac. I suddenly lost the ability to grasp the corners of the boxes and scale in illustrator - I must have accidentally turned off something - can anyone tell me what I done worng and how to fix it? It drives me crazy scale mechanically.  I want to take and drag! Please? Thank you! Mac

    Press these keys Shift B at the same time

    It is a toggle for the view. Show/hide bounding box

    The most common accident in Illustrator, everyone does this.

    Also be aware the H command to hide the edges, another accident is common.

  • [ADF, JDev12.1.3] (How to set values for the attributes 1) to create a file and 2) committing to the database?

    Hallo,

    in my tables and forms (created from VO istances) there are some areas for which, insert and update, I calculate and set the value programmatically when a record is created or updated.

    In some cases, I put the necessary values using the 'CreateWithParams' in the workflow diagram...

    In some other ones, I associate an action, a bean, a created button drag-and - drop operation 'CreateWithParams' of the istance VO...

      public String cwpButton_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("CreateWithParams");
        // here I calculate and set the needed params
        // ...
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
          return null;
        }
        return null;
      }
    

    And is ok if I can calculate the values for the attributes before a new record is created.

    But the approach that I have used to define the attributes (for new and updated records) whose value should be caluclated after the user has filled in the fields, before committing to the database?

    Thank you

    Federico

    Federico,

    Let me first tell you that our code is activity masking errors (the cache instead of working on them).

    1. If (! operationBinding.getErrors () .isEmpty ()) {}
    2. Returns a null value.
    3. }
    4. Returns a null value.

    This means that you do not check the errors at all. You must at least print a log with the error message, you receive, if you get one!

    To solve your problem, you override the method prepareForDML() of the entity or entities in question. You can calculate and set the necessary attributes until they get engaged in the doDML(). Do not use doDML() because it is too late in the life cycle.

    Timo

  • Action dynamic set value for the Shuffle.

    I have a Select list that bears the name of the servers. Depending on the value selected in the select list, the random component must be filled. I created a dynamic action to select the list complete the Shuffle. It does not work. Any help is appreciated.

    I gave shuffle as the name of the item assigned to the dynamic action, I chose the option to set value, set SQL statement type and the following query:
    SELECT DISTINCT MOUNT_POINT IN SERVER_DISK_SPACE_UTILIZATION WHERE SERVER_NAME =: P2_SERVER_NAME

    Thank you.

    Hi Nicolas,.

    If you use APEX 4.0 or more, then the feature you're looking for is given for the selection list and shuttle (non-random) I think!

    My assumptions are:

    Select the list item: Servers (P2_SERVER_NAME)

    Shuttle point: Mount Points

    Just what you need to do is, in shuttle item properties there is a section from the list of values :
    Set
    Cascading LOV Parent items to P2_SERVER_NAME

    List of values definition of

    SELECT DISTINCT MOUNT_POINT FROM SERVER_DISK_SPACE_UTILIZATION WHERE SERVER_NAME=:P2_SERVER_NAME
    

    I hope that helps!
    Kind regards
    Kiran

  • Validation of the numerical value of precision and scale

    Hi all

    IAM using ADF with EJB.
    I have an inputText field that accepts numeric values (of type java.lang.Double). Due to data constraints, I want to validate the input on its accuracy and scale value.
    I put a label of f: convertNumber under the inputText and set the MaxIntegerDigits and MaxFractionDigits properties with the values you want.
    I also set the ApplyValidation of the attribute in the file pagedef property. However, no validation has worked.
    I did the same test with af:ConvertNumber without result too.

    I know it's easy to put these constraints at the level of the entities with BC4J.

    Is there a neat way to set validation or I need to write code in the bean to support?

    How about using a regular expression validator:
    http://blogs.Oracle.com/Shay/2007/12/regular_expression_validation.html

  • How to set permissions for sharing by computer/object and not by the user, share Mac and no Windows Pc

    I wonder if anyone knows how put share permissions on an object such as a Mac in my case instead of the windows user.

    We do not have our Macs in Active Directory, we seek to share an external hard drive only Mac and not the Windows PC on the network using active directory. I tried sharing the hard drive of a PC to anyone and both PC and Mac can access to this, but we do want Macs to see and access it and not everyone. There is no selection shares with the name of the computer in the share permissions, so the only way to do is share it to everyone. The Mac, accounts are local to the Mac and the PC on Active Directory, so what I do is have a way to share this folder with only Mac and all the Windows PC. All solutions, all ideas will help.

    Thank you

    One thing I can suggest is to share the hard drive of a Mac and make sure that the hard drive is formatted in HFS file system + and not NTFS. Windows does not recognize HFS +. In this way, Windows users will not be able to access the hard disk.

    Alternative methods may be available with Mac. Please contact Apple support in this regard.

  • Problem with the default value for OAMessageTextInputBean to the controller layout

    Hello

    I encountered this problem when I expand a controller for the page create a work request (/ oracle/apps/eam/workrequest/webui/EAM_WR_WORK_REQUEST_DETAIL_PL). My goal is to re - fill OAMessageTextInputBean 'Additional Description' after the user clicks "Save" or "apply". When I try to change the value of another field, it works correctly, the problem persists for 'Description Addidional' more precisely. I don't know that I have the correct id (I took it from xml received by jdr_utils.printdocument). The journal does not all controllers running after the attempt to set the value.

    Compare these logs:

    [21]:PROCEDURE:[xxfideltronik.oracle.apps.eam.workrequest.webui.xxPageRegionCO]:Goosfraba, pre-added!
    [21]:EVENT:[fnd.framework.webui.OAMessageTextInputHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAMessageTextInputHelper: View:null ,Attribute:EAM_WR_WORK_REQUEST_DETAIL_PL426_EamWrRqlog , Return Value without datatype conversion :4321
    [21]:PROCEDURE:[xxfideltronik.oracle.apps.eam.workrequest.webui.xxPageRegionCO]:Goosfraba, added!
    

    [Descriptive information, does not work]

    and:

    [64]:PROCEDURE:[xxfideltronik.oracle.apps.eam.workrequest.webui.xxPageRegionCO]:Goosfraba, pre-added!
    [64]:EVENT:[fnd.framework.webui.OAMessageTextInputHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAMessageTextInputHelper: View:RequestDetailsVO ,Attribute:PhoneNumber , Return Value without datatype conversion :null
    [64]:EVENT:[fnd.framework.webui.OAMessageTextInputHelper]:OAF LOG: Event : Set Attribute Value, in: oracle.apps.fnd.framework.webui.OAMessageTextInputHelper: OldValue:null ,New Value:4312
    [64]:PROCEDURE:[xxfideltronik.oracle.apps.eam.workrequest.webui.xxPageRegionCO]:Goosfraba, added!
    

    [Phone number, works fine]

    Here is my code for the method of the processFormRequest controller:

    public void processFormRequest(OAPageContext pgCtx, OAWebBean wBean){
         super.processFormRequest(pgCtx, wBean);
        
         String description = pgCtx.getParameter("EamWrRqlog");
         log("Goosfraba: " + description, pgCtx);
    
         if(description != null){
              OAMessageTextInputBean additionalDescription = (OAMessageTextInputBean) wBean.findChildRecursive("EamWrRqlog");
              if(additionalDescription != null){
                   log("Goosfraba, pre-added!", pgCtx);
                   additionalDescription.setValue(pgCtx, description);
                   log("Goosfraba, added!", pgCtx);
              }
         }
    }
    

    A solution would be: -.

    1. create a transitional VO with an attribute, LongDescription.

    2 associate this attribute with the EamWrRqlog field.

    3. in the processFormRequest, set the TransientVO attribute value

  • Months of searching for numbers on the sheet

    Hello all and thanks in advance.

    I have tabs at the top. DATA (sheet 1), JAN (sheet 2), FEB (record 3), etc. until the end of the year.

    Data sheet will be the months on the left now I want care to go to the form to correct month and takes the total of the column relative to the other leaves and place in the correct cell line. (I've been copy paste, but I know there is an easier way to do this, so I turn to the people who know the numbers unlike my lack of knowledge.)

    On the leaves of the month, I would also like to highlight the line that are sat and Sun.

    Thanks again everyone for their help.

    Rich

    In the material master

    Hi, NN,.

    You will have a Table for each month. Each Table must have a different name. Your summary table lists more than 12 months, then I would say the table name from each month is named with the name of the month AND the year.

    The monthly tables may appear on separate sheets, or the same sheet. The key, as far as the formulae are concerned, is that each Table can be identified by its name.

    The following example includes only the table for April 2016, named "APR 2016", I assumed that the total line will be row 33 on each table of data collection, but wrote the formula to allow the placement of the line totals in other places. The lines for most of the actual days have been hidden and has not been designated, as these labels have no role in the operation of the formula.

    The TOTALS is defined as a footer line. The formula, in the columns showing a value is SUM (a) where 'a' is the letter of the column to be added. (The two values of zero have been entered manually for example).

    The table has a unique formula, entered in cell B3 and filled with right and until the last line for which there is a Table whose name corresponds to the label in column A. For example, the formula has been met only 3 online.

    B3: = INDEX (APRIL 2016: $A$ 1: $ 33, MATCH $N ("TOTALS", APRIL 2016: $A, 0), GAME ($ 1 B, APRIL 2016: $1: $1.0),)

    Syntax:

    INSTRUCTION (range,-l'index of the line, column-index, index of the surface)

    range: all of the cells in the source table

    the index of the line: the number of the start line to get the value. This is provided by the first statement of the GAME.

    the index of the column: the number of the column from which to get the value. This is provided by the second statement to MATCH.

    the index of the surface: omis. By default, 1. There is only 1 area of application of this INDEX, all of the source table.

    MATCH (image search-search for, - where - method)

    EQUIV function returns the position in the list of the search for value.

    First case:

    search for: TOTALS text

    search - where: column A of table source

    method): 0 means finding the exact value.

    Second case:

    search for: the text contained in the cell of line 1 of the specified column. That form is completed on the right, the increments of the column by one for each stage.

    search - where: line 1 of table source

    method): 0 means finding the exact value.

    The formula should be changed for each new line. Three references to "APR 2016" should be changed to match the name of the table to collect this row grand totals. Once edited in column A, the formula can be filled right and automatically adapts to his new position.

    Note: The duration value in column F of the table of the month wouldn't transfer and keep the same formula in column C of the summary table. Any attempt to restore the format to match your example resulted in a triangle of error.

    Kind regards

    Barry

  • How to set permissions for drives avoid the ORA-15063 start-up ASM?

    Hello

    When I try to reboot the DSO after a reboot of the server, I get

    ERROR: diskgroup DATA was not mounted

    ORA-15032: not all changes made

    ORA-15017: diskgroup 'DATA' cannot be mounted

    ORA-15063: ASM discovered an insufficient number of drives for diskgroup "DATA".

    It seems the permission of disks have changed after the reboot. I guess the spfile is inside the DATA diskgroup because it can not even start ASM. When I create a file with values asm_diskgroup and asm_diskstring pfile and 777 on the drive, I managed to start the ASM.

    * .asm_diskgroups = "INDX", "DATA".

    * .asm_diskstring = "/ dev / *'"

    $ oracleasm querydisk p - DATA

    Disk 'DATA' is a valid ASM disk

    / dev/sdb4: LABEL = 'DATA' TYPE = 'oracleasm.

    $ ls-la/dev/sdb *.

    ...

    BRW - rw - 1 root disk 8, 19, 29 mai 10:42 / dev/sdb3 it

    brwxrwxrwx 1 root disk 8, 20, 29 mai 15:17 / dev/sdb4

    ...

    And when I read the documentation I see this ' that the owner of the ORACLE binary file has permissions to read/write on the discs"(so do not run required) but the problem is that this test server should have the same parameters as in production. And the production server has brw - r - for the corresponding disk. So my questions are

    Can it be handled somehow in a different way? How can this have been reached production without the same settings I put in test? Is there an other way around for me in test to achieve?

    The network user (who owns the infrastructue grid) belongs to the same group of test and production. Test and production have ASM version 11.2.0.3, but the different operating system.

    production: 2.6.18 - 274.12.1.el5

    test: 2.6.32 - 504.16.2.el6.x86_64

    As this is my first ASM/grid infrastructure, I don't even know where to begin this review except the support.oracle.com search but I've not found anything except the Action for the error code (which is perhaps the only way around it)

    Any help is appreciated

    Thank you

    / Jenny

    Remember that the permissions of the device must be configured so that the owner of the Oracle database or the process has full access to the appropriate device files. It is not enough to only give ASM full authorization for devices files. ASM provides management for volume, but the database has direct access to device files and ASM does not interfere with inputs and outputs. You can set up groups and owner accordingly. If you have a different owner for ASM, you must assign appropriate groups to give full access ASM configuring oracleasm.

  • The dynamic value for flexfield clef: the safety profile

    We have a number of facilities such as a segment in the key flexfield. This was put in place when we went live with one of the companies. Now, we have other companies to come on board.

    Therefore, we would like to than the value set for use ' FA: security profile "." According to the profile parameter, flex values will be displayed.

    We have implemented a value from array validated using FND_FLEX_VALUES and the saying of WHERE clause:

    ((: $PROFILES$ .FA_SECURITY_PROFILE_ID = 4147 AND FLEX_VALUE_SET_ID = 1002849) OR (: $PROFILES$ .FA_SECURITY_PROFILE_ID = 143 AND FLEX_VALUE_SET_ID = 1016271))

    However, this does not-display the values of these two sets.

    Looking for your thoughts on this.

    Thank you

    Sanjib

    Dear Sanjib,

    Safety profile of property is linked any way MOAC.

    Create a security profile to your group of companies include two books of FA and assign this profile to FA: security profile-, you will get the desired results.

    Better, you are referring to the following footnote in Metalink: 11i security white paper [111129.1 ID] that detailed steps to create and assign access to manuals of several assets within the sole responsibility and to restrict access.

    Kind regards
    Sridhar

    Published by: K Sridhar 15 Sep, 2010 08:20

Maybe you are looking for