Display to the specific format number

Hi all

We want to show the number in the format like this PIC S9 (08) V9 (03)

Example, if we have given input 18 it should show 00000018000. Is there any function to display like this?

does not work?
Hmmm

SQL> SELECT replace(to_char(18.3,'00000099.000'), '.') FROM dual;

REPLACE(TO_CH
-------------
 00000018300

SQL> SELECT to_char(18.3 * 1000,'00000000000') FROM dual;

TO_CHAR(18.3
------------
 00000018300

SQL> SELECT to_char(18.3 * 10000,'00000000000') FROM dual

TO_CHAR(18.3
------------
 00000183000

Published by: Alexandr on April 8, 2011 02:55

Tags: Database

Similar Questions

  • When the value to display in the time format double digital indicator... Changes in value.

    Hi all

    I can't display the values that I want. I have a value double say 320 sent to a digital indicator where I edited the properties of it to display in a time format that contains only minutes and seconds as Yes, 3:20 '. Unfortunately, it takes the value and change it to another value and display that. I don't know what is the issue. If anyone knows the solution... Please post!

    There is an image attatched!

    Thank you.

    I believe only then due to the fact that when I convert a timestamp value to double as 03:20, he gave me 320. So I thought that the reverse can be trying. Should I just enter the total amount of seconds and that will show the Minuteseconds I want?

    Thanks for the quick response.

  • How to get the current date to display in the Spanish format.

    The coding is in format Adobe Acrobat, DC. The coding I have for the English today's date is:

    var d = new Date();

    sDate = util.printd var ("dd mmmm yyyy", d);

    this.getField("Text1").value = sDate;

    How can I get the current date displayed in this Spanish format: 07 December 2015

    Thank you

    It's a little complicated... But this code should do the trick:

    util.printd("dd", d) + " de " + util.printd("date(es){MMMM}", d, true) + " de " + util.printd("yyyy", d);
    

    Edit: Fixed the code... Did not notice the 'of' second before.

  • Problem with the display of the pages - formatting appears not.

    Hi all

    Sorry, this is a really stupid question and I'm almost too embarrassed to ask for! When I used previous versions of Dreamweaver, the page I've seen when editing looked exactly as he did live on the Web site; but when they gave me a new computer technicians also gave me the latest version of Dreamweaver - CC 2014. My pages now look like this:dreamweaverpage.jpg

    But the real live Web site page looks like this:

    livewebsitepage.jpg

    Why is formatting not to show in my opinion Dreamweaver page? This makes it very difficult to change the page, and if I can't sort it some how and then I'll have to ask OUR guys if I can go back to the previous version of Dreamweaver - it seems stupid, because I'm sure it's just a button that I need to click somewhere to correctly display the formatting!

    Thank you LOADS for all help!

    Cathy

    Hello

    It seems that the CSS does not work on the page. Please check the head section of the page and check that the CSS files are correctly connected.

    Generally CSS as VCC is not in the correct format or file CSS isn't in the right place.

    In case you are unable to find something with CSS then please share the cod in the Head section of the page and also the screenshot of the structure of the folder root.

    Concerning

    Vivek

  • Number displayed in the oracle.sql.NUMBER form in the result of the query

    Developer SQL version 3.2.10.09.57 displays numbers like "oracle.sql.NUMBER@66a35419 (the part after @ is not constant and change each time) even for simple count (*) select double."
    At the same time "run the Script (F5)" no indication that the header
    COUNT (*)
    ------------
    and no the query results.

    Hi Andriy,

    The forum search, I see a similar complaint noted against 3.1.07.42. Instruction execution produces the list oracle.sql.NUMBER, probably because of a corrupt installation query results (due to decompress questions, or perhaps no decompression in an empty directory). See the following thread:
    SQLDev 3.1: Number-fields in the tables have "oracle.sql.NUMBER @...". »

    Hope this helps,
    Gary
    SQL development team

  • How to format the specific format string

    Hi all

    I have the column in the table and the column will be the varchar2 data type. I need the value of the specific model column.

    by ex. If the value is ABCDEFGHIJKLMN then output should be ABC-DEFG-HIJ-KLMN.

    the model can be changed in the future.

    Thank you
    Nagarajan.V

    Published by: Nancy Venu on 24 July 2012 14:56

    >

    Nana Hi and welcome to the forums.

    by ex. If the value is ABCDEFGHIJKLMN then output should be ABC-DEFG-HIJ-KLMN.

    Something almost identical has been done [url https://forums.oracle.com/forums/thread.jspa?messageID=10458534] here - take a look at the responses of Frank Kulash.

    the model can be changed in the future.

    Then change the regular expression.

    You neglected to give your version of Oracle - you must always do, because the answer can vary widely depending on the version.
    If you do not have 10 or more, you cannot use regular Expressions.

    Please take the time to read the forum FAQ and also the thread "sticky" by BluShadow at the top of the list of positions
    on the forum homepage. Help us help you - these forums are a great resource and you will get the maximum of
    If you follow the guidelines.

    HTH,

    Paul...

    Nagarajan.V

    Published by: Paulie July 24, 2012 10:29

  • Incorrect display using the loop format for

    Hello

    I have a digital painting using a hexadecimal display format that is autoindexed by a loop for. Within the loop for each unique value is passed to a Subvi needed the hexadecimal display format. Unfortunately, indexing is not keep this hex format but transfers back to a decimal number.

    No idea how to solve this problem?

    Thanks in advance and best regards

    Simon

    Thanks for this tip. The problem was an another Subvi where I created the num-array that will subsequently in the loop for., all the digital elements where the value instead of I32 I16. The controller could not handle these false values, so I got a nonsense.

    Thank you very much for your quick responses!

  • After restoring my computer and iTunes download, iTunes can not find my my music files.  They have to be in the specific format or a folder iTunes for a recognized?

    I had to restore my computer from the ground upward.  I save my music files and then reloaded after the system restore.  Then, I downloaded the latest version of iTunes.  But apparently iTunes can't find my music restored files.  I use a 10 newly installed Windows.  Y at - it a particular format to place the music files should be put in order for iTunes to see.  Or maybe a procedure that I did not follow properly.  Please notify.  Thank you.

    If you have registered to the iTunes library database files, launch iTunes with the SHIFT key is pressed and choose this library. If this isn't the case, slide the song files into the application window open iTunes or add it automatically in the iTunes folder.

    (144153)

  • How to get essbase excel add in the display of the total cumulative number?

    Version 11.1.2.1

    When I connect firstly in my ASO application via the excel add-in, the first thing I see is a null value. My first dimension/column is 'period '. Period is marked as a dynamic calc and label only.

    When I drill down in the period I see obviously all rollup values. How can I get the excel to display the full cumulation (instead of having to drill down) when I connect firstly because I like to keep my options as ' delete missing values / zeros "checked.

    I see in Sample.Basic is 105522. I want something like that. I tried reloading the numbers and changed the properties without result.

    What is the logic behind this?

    If "Period" is marked as 'Label only' it will take the value of her first child, if the first child has a value of #Missing, then "Period" also will display a value of #Missing. If you want to 'Period' to show all the periods (as Sample.Basic does) then you need to take off the "Label" label only

  • Check which table has no column with the specific name number of tables

    Hello

    Inside my diagram I have 66 tables, each column last_update_date. Although all do not have the program_update_date column. The problem is that I want to go through all the tables and tables that don't have the program_update_date column. It should be noted that if the table does not have the column 2 program_update_date query will be used instead of the query 1.

    Query1:
    ----------
    Select last_extract_date,
    TO_CHAR (min (largest (nvl (*last_update_date*, January 1, 10 '), nvl (*program_update_date*, January 1, 10 '))), "DD-MON-YY HH24:MI:SS") mi.
    TO_CHAR (max (greatest (nvl (*last_update_date*, January 1, 10 '), nvl (*program_update_date*, January 1, 10 '))), "DD-MON-YY HH24:MI:SS") my
    of table_names
    Last_extract_date group
    last_extract_date desc order;


    query2:
    ----------
    Select last_extract_date,
    TO_CHAR (min (NVL(last_update_date,'01-Jan-10')), "DD-MON-YY HH24:MI:SS") mi.
    TO_CHAR (Max (NVL(last_update_date,'01-Jan-10')), "DD-MON-YY HH24:MI:SS") my
    of mispa_events
    Last_extract_date group
    last_extract_date desc order;

    Please find the PLSQL code that must be used:

    Declare
    Cursor C_1 is
    Single select table_name from user_tables; table_names varchar2 (240); BEGIN C_1 open; Loop Fetch C_1 in table_names; WHEN THE EXIT C_1% NOTFOUND;


    EXECUTE IMMEDIATE ('select last_extract_date)
    TO_CHAR (min (largest (nvl (last_update_date, "1 January 10"), nvl (program_update_date, "1 January 10"))), "MON-DD-YY HH24:MI:SS") mi.
    TO_CHAR (max (greatest (nvl (last_update_date, "1 January 10"), nvl (program_update_date, "1 January 10"))), "MON-DD-YY HH24:MI:SS") my
    of ' | table_names | »
    Last_extract_date group
    order of last_extract_date desc');


    End loop;
    Close C_1;
    COMMIT;
    End;


    Help, please.

    Thanks in advance.

    Published by: P.Sam on June 14, 2010 17:00

    Try this

    SELECT table_name
      FROM (SELECT   table_name,
                     SUM (CASE
                             WHEN column_name = 'PROGRAM_UPDATE_DATE'
                                THEN 1
                             ELSE 0
                          END) cnt
                FROM user_tab_columns
            GROUP BY table_name)
     WHERE cnt > 0
    

    This will give you all the tables that has no ' PROGRAM_UPDATE_DATE in a column

  • How to create an item of the display of the Image with functions Apex?

    Hi everyone :)

    I'm working on the 4.1.1.00.23 Apex in an 11g database XE.

    I want to display an Image in a report, I can do this by using the ' + BLOB download Format mask + ", but the images displayed in the original format and I want to display the smaller.

    I read that you need to create a procedure, a SYNONYM and call them to the src of the img tag. as Zsuzsi Vadasz mentions here
    http://blog.hilandco.com/2010/05/How-to-show-BLOB-type-column-as-image.html

    But I remember that I was able to create items in reports with the functions of the Apex, I think they were APEX_ITEM package, so I want to know if there is a way to create the '+' display Image + element with a function of APEX.

    Thank you.

    Diego (SniperCat) wrote:

    I'm working on the 4.1.1.00.23 Apex in an 11g database XE.

    I want to display an Image in a report

    Always specify if "report" means the report standard or interactive.

    I can do this by using the ' + BLOB download Format mask + ", but the images displayed in the original format and I want to display the smaller.

    I read that you need to create a procedure, a SYNONYM and call them to the src of the img tag. as Zsuzsi Vadasz mentions here
    http://blog.hilandco.com/2010/05/How-to-show-BLOB-type-column-as-image.html

    This post was obsolete when it was written. Use the built-in support of BLOB.

    Resizing of the declarative BLOB images in reports is simple using CSS. Add a style sheet with:

    td[headers="PHOTO"] img {
      display: block;
      width: 40px;
      border: 1px solid #999;
      padding: 4px;
      background: #f6f6f6;
    }
    

    where the value of the PHOTO in the attribute selector is the ID of the image column table header. Define only a single dimension (in this case the width) will scale the image with the correct proportions. (Background, padding and border properties are just eye candy...)

    However, the scaling of the images in the browser in this way is a huge waste of bandwidth and product of lower quality images than to create good scaled down versions using image tools. Image download megapixel and then to reduce them to the size of the thumbnail result in needlessly pushing millions of bytes which will never be seen.

    For better performance and image quality, and where you need specific image scaling of the best approach is to use the ORDImage database object to produce thumbnail and preview automatically versions. Unfortunately, this is not possible in Oracle XE as multimedia is not included :-(.

  • authorization workflow for the author of the specification

    Hello

    In one of our formulation workflow permission table, we defined that the product developer can only workflow specifications that have the status "inactive". But the workflow button is displayed for the specifications that are draft status and when the product developers journal is at the origin of the spec in the permission workflow table, author/creator of the specification is not selected for the State of project. want to ask if this is a bug or by default, the initiator of the spec is always allowed to workflow, ignoring the permission set up table?

    Thank you

    Church

    Your assumption is correct, but the sender has the permission in the first default state. Or the specification may be not editable or workflow-able it is saved.

  • How to show the white space of the text formatted?

    Hello

    I use Jdev 11.1.1.6.0 with ADF Faces.

    I have a requirement to show a text report page in recorded format. The report in text format is saved as a text report several records with each line containing the maximum 78 characters.

    Each drive is formatted with a space to display the data in the column. For example:

    SUMMARY

    -------

    Col1 Col2 Col3

    xyz1234 abc9999 mno1234

    ...

    The report data appears currently unformatted. It removes the white space and shows just with a few default spaces. Something like:

    SUMMARY

    -------

    Col1 Col2 Col3

    xyz1234 abc9999 mno1234

    ...

    Thus, you cannot read the data with the appropriate column header. If you query the table in SQL Developer, it shows with perfect formatting. Also our legacy Oracle Forms application to display with the correct format.

    Currently, I tried following, but it does not work:

    < af:outputText value = "#{row.rptText}" id = 'ot1' "

    inlineStyle = "do-family:"Courier New";" font-size: 12.0pt; »

    noWrap = "false" / >

    I tried this on af:column too, especially noWrap = 'false', but so far without success.

    Any help is appreciated.

    Thank you

    JAI

    If you can use a converter custom jsf (validation and conversion of entry) to change in the query using "pre" helped the (text with pre sourrounf) when the data is rendered. The converter must implement two methods. Then you can try to use ' ' as a space of unbreakeable instead of simple spaces.

    Timo

  • I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not display in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not appear in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    You must save the spreadsheet containing the new date as a model format and use this custom template for each new spreadsheet where you want that this date format personalized at your disposal.

  • BI Publisher - how to display the number of lines displayed at the bottom of the table on each page

    Hello

    We are the conversion reports Actuate BEEP and not able to understand how to view "Accum.Total = < n >" at the bottom of each page. In the attached report to operate it, "Accum.Total = < n >" must be displayed at the bottom of each page where < n > is the number of lines displayed on the current page and previous page.

    For example, if there are 10 rows in the result set, if the 1st page displays 4 rows, 2nd page displays 3 rows and 3rd page is 3 lines and then Accum.Total = 4 on page 1, Accum.Total = 7 on page 2 and Accum.Total = 10 on page 3.

    Note that we use the property table "allow the lines to break Pages = False" as we do not want a specific line can be split across pages.

    I enclose a sample of report actuate, rtf, BEEP and XML report for testing file.

    Approach used so far-

    1 > I tried to put the counter in the footer, but it seems that only the fields that come directly from the IC can be used on the header/footer. No matter what form text field or variables defined in the report.

    2 > I used approach given in the link below. Using this approach, I am able to view a coded value hard at the bottom of every page (just below the table) but his does not work for the variable (in my case the counter c1).

    https://blogs.oracle.com/xmlpublisher/entry/continued

    3 > on Google, I found a few articles on the page break conditionally as display only certain numbers on a page or the page by section break but in our case, its dynamics and its number of lines to display on a page is driven by data, so I could not think of a certain condition to use in "Condition." ": If" for use as a page break.

    Thank you

    Richa

    Watch see the-Report

    http://docs.Oracle.com/CD/E28280_01/bi.1111/e22254/create_rtf_tmpl.htm#do_bf_cf

    Download the https://blogs.oracle.com/xmlpublisher/entry/continued sample

    Add

    <>

    name = "contd_footer".

    format = "99G999G999" / >

    After the field "Footer."

    If need to use a footer to display the meter then and sous-modèle with code above and call it in footer

Maybe you are looking for