How can I convert a number field in a to Date?

I have two columns in a table, and i would like to concate this two fiels to read Januaray-2010
CREATE TABLE "CATDB"."SC_DTL_MEASURE_DETAIL"
           "TIME_YEAR"                 NUMBER(*,0),
           "TIME_INCREMENT"            NUMBER(*,0),
   )Time_Incriment data need to be changed to month MON Januaray to December
1
2
3
etc
12
Time_year data is
2010
2010
etc

Well one way easiy way without changing your column datatypes (this would be the best way) is to first convert the numbers into text. Then concat this text. Then convert the text into a date value. Then print the date value as you want it to appear.
example
with testdata as (select 2010 TIME_YEAR, 1 TIME_INCREMENT from dual union all
                  select 2010 TIME_YEAR, 12 TIME_INCREMENT from dual)
select time_year, time_increment,
       to_char(to_date('01-'||to_char(TIME_INCREMENT,'FM00')||'-'||to_char(TIME_YEAR,'FM0000'),'DD-MM-YYYY') ,'FMMonth-YYYY')
from testdata;
2010     1     January-2010
2010     12     December-2010

Similar Messages

  • How can I convert a number to char in javascript

    How can I convert a number i.e ascii number to char in javascript.
    ex: 55 to A

    How can I convert a number i.e ascii number to char in javascript.
    Quite simple: By asking in a forum that deals with javascript and not with java.
    Have no clue...
    Maybe on http://www.irt.org

  • How can i make PO number field as a mandatery in sales order

    Hi Friends,
    can any one help me for the following requirement
    how can i make PO number field as a mandatery in sales order
    Thanks
    Nitchel

    Hi
    You have to include the "Purchase Order" field in the Incompletion list.
    Purchase order field is a Header data in the Sales order.
    So you have to create an Incompletion Procedure for Sales document Header.
    There include the field "Purchase order" field, assign the "Status group" to it.
    You may activate the error/warning check box.
    Assign the Incompletion Procedure to your Sales document type.
    Go to Sales document type VOV8 and activate the "Incompletion message" field so that without entering PO number you can not proceed.
    Now whenever you will create an order (using the order type where you have assigned the procedure), you have to fill up the PO field or else you can proceed.

  • How can I convert a space from ABAP to CSV data?

    Hello guys,
    how can I convert a string like
    "This is a%test%"
    to
    "This is  a test "
    into CSV data?
    I try to with   REPLACE ALL OCCURRENCES OF '%' IN string_above WITH space,
    but I got the string without space, like
    "This is  atest"
    I read some posts that CSV will ignore space.
    But which kind of symbol in CSV represents space?
    Thanks for any suggestion!
    Regards,
    Liying

    USE THE CODE AS SHOWN BELOW...
    TYPES : BEGIN OF tp_data,
              line(4096),
            END   OF tp_data.
    *&      Form  gui_upload
          Upload the data from the input file to the internal table
    FORM gui_upload.
    *--Local data declaration
      DATA: l_filename_ip TYPE string,
            tl_data       TYPE STANDARD TABLE OF tp_data WITH HEADER LINE.
      l_filename_ip = p_input.
    *--Upload Data
      CALL FUNCTION 'GUI_UPLOAD'
           EXPORTING
                filename                = l_filename_ip
                filetype                = 'ASC'
                has_field_separator     = ''
           TABLES
                data_tab                = tl_data
           EXCEPTIONS
                file_open_error         = 1
                file_read_error         = 2
                no_batch                = 3
                gui_refuse_filetransfer = 4
                invalid_type            = 5
                no_authority            = 6
                unknown_error           = 7
                bad_data_format         = 8
                header_not_allowed      = 9
                separator_not_allowed   = 10
                header_too_long         = 11
                unknown_dp_error        = 12
                access_denied           = 13
                dp_out_of_memory        = 14
                disk_full               = 15
                dp_timeout              = 16
                OTHERS                  = 17.
      IF sy-subrc <> 0.
        MESSAGE ID   sy-msgid TYPE 'S' NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        IF sy-subrc = 1.
          MESSAGE e000 WITH text-e04.
        ENDIF.
      ELSE.
        LOOP AT tl_data FROM 2.
    *--Taking the contents of the input file leaving the header part
          PERFORM split_and_save USING tl_data-line.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " gui_upload
    *&      Form  split_and_save
          Splitting the contents from the input file and saving them into
          an internal table
         -->P_TL_DATA_LINE  text
    FORM split_and_save USING fp_data.
    *--Local data declaration
      DATA : tl_data TYPE STANDARD TABLE OF tp_data WITH HEADER LINE,
             l_type  TYPE c,
             c_space(1) TYPE c VALUE ' '.
    *--Split at the Comma
      SPLIT fp_data AT c_space INTO TABLE tl_data.
      CLEAR inputtab.
    *--Move it to the target fields
      DO.
        ASSIGN COMPONENT sy-index OF STRUCTURE inputtab TO <fs_field>.
        IF NOT sy-subrc IS INITIAL.
          EXIT.
        ENDIF.
    *--Extract source data
        CLEAR tl_data.
        READ TABLE tl_data INDEX sy-index.
    *--Populate the target
        <fs_field> = tl_data-line.
      ENDDO.
    *--Append this record
      APPEND inputtab.
    ENDFORM.                    " split_and_save
    In the above code u can use make inputtab like tp_data and get the result as requires in an internal table as space seperated fields.
    In place of space u can also use any other symbol.
    And after that u can replace all occurences of space with the comma by using the statement that u have written below.

  • How can I create a custom field in contacts and have it appear in ICal?

    How can I create a custom field in contacts (death date) and have it appear in calendar?
    Birthdays seems to work fine but I'd like to do the same for a custom field called Date of Death

    By default, iTunes convert files to type AAC which has an extension of .m4a
    For iTunes to recognize them as Audiobook files, the extension needs to change from .m4a to .m4b
    This can be done a number of different ways. Here are 2 (beginner and advanced)
    . simply, by renaming each file from windows explorer
    . more complex, by using Start/Run/cmd to get a "DOS" type window,
    using the command "cd" to change to the directory that your files are in
    and entering "ren *.m4a *.m4b"

  • How can i convert the firefox-history-timestamp in places.sqlite into a normal date format? The firefox-timestamp is not equivalent to the unix-timestamp, that's why I ask. I could not find a conversion function. Does anyone know something about this?

    As I opened the places.sqlite with an sqlite-editor I found out that firefox saves the last_visit_date via a timestamp which is 16 digits long. I realized that the first 10 digits are similar to the corresponding unix-timestamp but not equal. So.. how can i convert the firefox-timestamp into a normal date? Or into the corresponding unix-timestamp?

    Write a bash script or 'C' program to change the date format and then use the sql update function to receive the stdio output 'where date_field='embeded date value'.

  • How can I copy a number of like fields and paste to reduce form creation time?

    How can I copy a number of like fields and paste to reduce form creation time?

    Creating Form Fields by Ted Padova

  • How can i know the number of lines in field-symbol internal table

    how can i know the number of lines in field-symbol internal table

    Hi,
    If your field symbol has been defined as an internal table :
    Use std describe as
    Data: l type i.
    describe <fs> lines l.
    'l' will contain the number of lines as needed.
    FYI
    The size of this storage area in a field symbols depends on the number of table lines which is not fixed, but determined dynamically at runtime.
    Regards,
    Amit

  • How can i validate input number into a Field of  type char in oracle form?

    hi.....
    can any one help me.....please...!!!?!!
    How can i validate input number into a Field of type char in oracle form?

    i have tried doing that, but still the field except numbersthere was an error in that code. it should have been
    var_num:=to_number(var_char);however, it appears that you want the entry NOT to be a number. if this is the case then try
    begin
      if to_number(:block.item) = 0 then null; end if;
      message('The entry cannot be numeric');
      raise form_trigger_failure
    exception
      when value_error then
       /* this is where you put the code you want to be run when the
          entry is non-numeric */
    end;

  • How can I convert on HDF file from HWS file?

    how can I convert on HDF file from HWS file?

    Well by opening up the HWS file with HDFView, it contains the below structure.  In the axis0 properties (time axis) there is a field called increment that is the sampling rate I used (5 nanoseconds).  But I do NOT see any additional info in terms of triggering modes or delays, etc.
    wfm_group0
    axes
    axis0
    axis1
    data_vector
    data (here is our data, I verified it is correct)
    id
    traces
    trace0 (we don't care about this, I think)
    vectors
    vector0
    data (not sure what the difference is between this and axis1
    wfm_group0 (1576, 2)
        Group size = 4
        Number of attributes = 5
            major_version = 2
            minor_version = 0
            release_version = 6
            type = NI-Waveform
            writer = NI-HWS
    axis0 (7424, 2)
        Group size = 0
        Number of attributes = 5
            implicit? = 1
            increment = 5.0E-9
            numDigits = 57
            ref_time = 0
            start = 0.0

  • How can I convert an existing table to IOT

    Hi,
    My Oracle version is 10.2.0.4
    Below is my structure of my test_table .
    It has 1141580 rows.
    I want to convert this into index Organized table. It has no secondary indexes.
    How can I convert an existing table to IOT.
    CREATE TABLE test_table (
       Column1             NUMBER        NOT NULL,
       Column2             DATE          NOT NULL,
       Column3             VARCHAR2(100) NOT NULL,
       Column4             VARCHAR2(8)   NULL,
       Column5             VARCHAR2(40)  NOT NULL,
       Column6             VARCHAR2(3)   NULL,
       Column7             NUMBER        NOT NULL,
       Column8             NUMBER        NULL,
       Column9             VARCHAR2(32)  NULL,
    ALTER TABLE test_table
      ADD CONSTRAINT test_table_pk2 PRIMARY KEY (
        Column1,
        Column2
      USING INDEX
        STORAGE (
          INITIAL   30720 K
    ALTER TABLE test_table
      ADD CONSTRAINT test_table_cons1 FOREIGN KEY (
        Column1
      ) REFERENCES test_table2 (
        Column1
    /

    alter table doesn't allow to change the organization of a table.
    So the logical answer to your question is
    You can not
    and your question
    redundant.
    As most other questions here.
    So the answer should have been
    - create a new table
    - insert all rows
    - drop the old table
    - rename the new table
    Oracle is not about rocket science.
    Oracle is about reading documentation and using brains.
    If you do that, maybe, one day, you will be a bigboy.
    If you keep asking redundant questions you will remain a littleboy.
    Sybrand Bakker
    Senior Oracle DBA

  • How can i convert the HTML information in XML form to a PDF?

    Hi does any body know how can i convert the content of an HTML field in a XML Form in a regular text to include in a PDF in a Java program?

    Hi ,
    On the tool bar you have an option "Browser" which is next to "HTML Editor" .
    You know that for using these elements wo have to map them with Data Schema.
    Step by step
    1. In data Model Under Data Schema Add a child and name it Read_More.
    2. In the left hand corner ,click on tab Type and from the drop down select "rid"
    3.Click on the "Browser" from the toolbar (as told earlier) and drag and drop it on the form.
    4. Drag the Data schema which u have made(Read_more) and drop it on the browser on form. On right hand side u will se the mapping done.
    5.Click on the "Browser" which is there in the form and on the right hand side of the form u will see the property window.
    6.In property window change the value of action property to "Item Entry point"
    7. Repeat step 3 and 4 in Render and show form but using "label" nad not browser.
    Do not forget to add Save button in Edit Form.
    This will solve your problem.
    PS:Rewards Point Please.
    Regards,
    Naveen Gupta

  • How can I convert output data (string?) from GPIB-read to an 1D array?

    Hello all,
    I am reading a displayed waveform from my Tektronix Oscilloscope (TDS3032) via the GPIB Read VI. The format of the waveform data is: positive integer data-point representation with the most significant byte transferred first (2 bytes per data point).
    The output data of GPIB-Read looks like a string(?) where the integer numbers and a sign like the euro-currency sign are seperated by spaces e.g. #5200004C3 4 4 4 4 3C3C3........ (C represents the euro-currency sign).
    How can I convert this waveform data into a 1D/2D array of real double floatingpoint numbers (DBL) so I can handle the waveform data for data-analysis?
    It would be very nice if someone know the solution for this.
    t
    hanks

    Hi,
    First of all, I'm assuming you are using LabVIEW.
    The first you need to do is parse the string returned by the instrument. In this case you need to search for the known symbols in the string (like the euro sign) and chop the string to get the numeric strings. Here are some examples on parsing from www.ni.com:
    Keyword Search: parsing
    Once you parse the numeric strings you can use the "String/number conversion VIs" in the String pallette.
    Hope this helps.
    DiegoF.Message Edited by Molly K on 02-18-2005 11:01 PM

  • How can I convert a version 9 PDF to version 10 or 11?

    My scanner is a couple years old and it scanned it to version 9. The government website I'm trying to upload to is terrible and won't accept version 9 or earlier. I don't understand why; it's all PDF. Adobe Reader 11 can open version 9 so why can't theirs? How can I convert my PDF to version 10 or 11? I looked at pdfconverter, but it's free only for files <512 kb and mine is 1 MB. I'm certainly not paying $69 to convert one file.

    https://bsaefiling1.fincen.treas.gov/NoRegSubmitServlet
    "Please correct the errors before resubmitting the form:
    Error: problem in processing the uploaded form.Please check a valid pdf form is attached"
    They can't even put a space between sentences so how can they accept a PDF????
    It waits about a second and then gives me an error.
    They have a PDF form to fill out, but then it says to sign and attach it so I assume that means to scan it. It says "Click the above button to access the submission page in order to electronically file your completed Individual FBAR. Enter your email address, first name, last  name and phone number and then browse on your computer to locate the individual FBAR you have completed. Once attached, you can file your FBAR electronically by clicking submit, at which time you should receive an email notification of acceptance." The bolded section must mean that I have to scan it. We're dealing with the government here, so not much makes sense.

  • How can i convert a file in flash

    how can i convert a .fla file into swf, mp4 or avi files so i can actually display them?
    i made some nice animations but can't share them because i can't save them in my wished format.

    HI
    GOOD
    I NEVER FACED SUCH KIND OF ISSUES, BUT HERE I AM GIVING SOME DETAILS ABOUT SAP RDI FORMAT,I HOPE THIS WILL HELP YOU TO SOLVE YOUR PROBLEM.
    Description
    Using the SAPscript Raw Data Interface (RDI), you can connect external text management systems to control individual requests, for example, optimizing postage expense. The interface contains all form data from the R/3 System, but no layout information such as font or page size. The external system alone is responsible for the layout and administration of the document data. The RDI is of special importance for mail processing. The external system sorts the document data from the interface and forwards the documents accordingly.
    The Raw Data Interface is a certified interface and allows easy connection to external systems. However, you pay the price for this extra function, as you lose tight integration with the R/3 System. For example, you cannot find out from within an R/3 application whether the external system successfully printed and sent the documents. In addition, extra expense is incurred each time you adapt a standard form, since the system has to adapt both an internal and external form. The external tool is not an integral part of the ABAP Development Workbench, so that field information (field type, output length and so on) from the ABAP Dictionary is not available.
    THANKS
    MRUTYUN

Maybe you are looking for

  • All USB, internal and external do not work

    It does not recognize the keyboard, trackpad or internal bluetooth. When I connect an external keyboard or mouse does not recognize it either. If I connect a flash drive does have power (the LED lights flash drive), or connect a mighty mouse also has

  • Workflow server end embedded PL/SQL and XDB

    Hi, I read in the Installation Guide that we must use Apache. We have Oracle 11.1.0.7 and embedded PL/SQL (from APEX) and don't use Apache. Is it possible to do so and install Workflow server without a HTTP-Server? Thank you for your help Siegwin

  • Po closed

    Dear expert how can i find closed po's in the system i.e those po's whose delievery is completed but there is no goods reciept for that PO Regards

  • Rtmfp p2p does not work on ios, who is responsible?

    Hello, i'm having some troubles with p2p rtmfp connections from and to an air packaged ipa file via adt. First, iam not able to open 2 concurrent NetConnections. So this Example by Michael Thornburgh on http://forums.adobe.com/thread/857560?tstart=0

  • Distribution channels, Intercompany sale process – business examples

    In intercompany sale process, there are two sales areas. Could there be different distribution channels in these sales areas? Have you seen this in your client/company systems? If yes, please elaborate with business justification. Thanks! TW