Concatenated string Date

Using APEX 4, I have a vision concat mulitple incident dates together with (2 slashes) as separator, as follows:
empid, incident date
9001     10/06/2000 \\ 10/07/2000     
9002     02/13/2002 \\ 02/15/2002
9003     09/04/2009
Look at the title of the Object Explorer with above data format. But when I attempt to create a report based on this point of view, the date of the incident column always shows as follows:
empid     incident date
9001     06-OCT-2000 \\ 07-OCT-2000
9002     13-FEB-2002 \\ 15-FEB-2002
9003     04-SEP-2009
How could it happen? I thought that once the date has been concatenated, type column should become the channel. The column type was shown as string under column attrib in report apex region. How can I make it look exactly like what I have on the view? (MM/DD/YYYY mask won't work because it is a chain)


Can you help me? I'm puzzled.

Munshar

Munshar,

In your opinion, you are using to_char with a specific format mask or to_char without mask format, or just date1 |'-' | date2?

If either of the latter, then the database is having to make its best guess on how to convert the date to a string. It does this based on your NLS parameters, which may be different depending on how you enter the database. Best option is to be very specific about your conversion rate and use

to_char(date1,'MM/DD/YYYY')||' \\ '||to_char(date2,'MM/DD/YYYY')

If this does not help, it would be beneficial if you could at least give us the relevant part of the code from your view.

-David

Tags: Database

Similar Questions

  • Can a Xquery return a concatenated string and an XML element

    Hello

    My Xquery fucntion is illustrated below:

    It accepts parameters of Channel 4 and a XML element i.e., $Message which is a component of XML (application to come to the service) and I need to connect all this information in a log file.

    I use the below fucntion concat to get a concatenated string of all parameters, but for $Message I m not able to get the XML load. How to achieve the same in the XQuery?

    *$Message is the below XML file:*

    payload of <>
    < aa > a < /aa >
    < bb > two < /bb >
    < cc > 3 < /cc >
    < / payload >

    My Xquery function is:

    declare function xf:XformLog($Name_as_xs:string,)
    $id as XS: String.
    $Context as XS: String.
    $Annotation as XS: String.
    $Message as element (*))
    as XS: String {}
    Concat ("name = ', $Name, ','," Id = ", $id,", ","Message = ", $Context,","context", Annotation = ", $Annotation,","," event Message = ', data ($Message/@*, $Message / node ()) "" "")
    };


    I am trying to achieve the following log:

    Name = xyz, Id = 111, Message Contact is abc, Annotation = ggg, the event Message = < payload >
    < aa > a < /aa >
    < bb > two < /bb >
    < cc > 3 < /cc >
    < / payload >


    How can I achieve the same. Please suggest.

    Thanks in advance.

    Published by: user9223904 on March 18, 2013 03:16

    Hello

    You must use a serialization function to convert a string of the instance of the element.
    This type of functionality is not included in the XQuery standard, but many directors provide an extension to do this.

    For example, in OSB, you can use fn - bea: serialize().

    What is your environment and XQuery engine?

  • LISTAGG function: "result of concatenating string is too long."

    Hello

    I use Oracle SQL developer 3.0.04 version. I tried using the LISTAGG function to group the data.
    CREATE TABLE FINAL_LOG AS
    SELECT SESSION_DT, C_IP, CS_USER_AGENT,
    listagg(WEB_LINK, ' ')
         WITHIN GROUP(ORDER BY C_IP, CS_USER_AGENT) "WEB_LINKS"
         FROM webviews
         GROUP BY C_IP, CS_USER_AGENT, SESSION_DT
         ORDER BY SESSION_DT
    However, I get the error message,

    SQL error: ORA-01489: result of concatenating string is too long

    Is it possible to go around it, or are there other alternatives?

    Tim Hall has a page on the various techniques of aggregation of chain that guides you through an example of creating and using a user-defined aggregate.

    On AskTom referenced by Tim page, there is an implementation of an aggregation function of string that returns a CLOB that you can use.

    If you want to understand what makes the user-defined aggregate function, it may look a bit complex, especially if you have never looked at object types in PL/SQL. You don't need to understand all the details of the implementation if you use just the code, however, you can simply create the function and use it as you would with any other aggregate function.

    Justin

  • What writing (string data) return?

    My question is in regards to NationalInstruments.NI4882.Device.Write (string data)

    If I run this command while the GPIB bus is busy, it will return once the message that I was in is aligned, or it will come back once the message that I passed in is sent successfully on the GPIB bus?

    Thank you for your help

    This function expects actually until the message is sent, and it receives an acknowledgment from the receiver. Update the status table that is returned when the write is complete before it is returned to the calling program.

  • TDMS replace specific fields with the new string data

    Hello

    Wonder if someone could advise a more easy, more clean solution or I may end up making a big mess on my diagram!

    I use DaqmxConfigureLogging.vi to write data in the .tdms and this file everything works. Unfortunately, this vi affects physical names such as Dev1/ai0 channel names in Journal of root and group of tdms files.

    I would like to read individual fields where they are written and replace them with the names of channel. The location of these channel names is fixed on the tdms file.  However, I noticed using file i/o functions, such as file open/close/set position could not work, because these files do not seem to recognize the .tdms file. And it is not all fields tdms functions you want the value of the positions on sheets of root/channel files tdms and read fields desired as string data.

    Any suggestions? I can miss something quite simple!

    crossrulz wrote:

    k waris wrote:

    "In fact, it uses some names you give the channels and groups.

    I use Dev1 / ai0:15 connect all 16 channels. Unfortunately if using 'name to assign' entry will not do the job in my case!

    Of course, it will be.  Use a loop FOR with DAQmx channel create to create each channel and give them a name.

    Just to clarify what I meant here...

  • error "result of concatenating string is too long" when I try to run the following code. Help me!

    When I try to perform the following PROCEDURE, he throws me an error:

    Error from line: 2 in command.

    BEGIN

    FACT_UPDATE;

    END;

    Error report-

    ORA-01489: result of concatenating string is too long

    ORA-06512: at "AFLOBIDW. FACT_UPDATE', line 22

    ORA-06512: at line 2

    01489 00000 - "result of concatenating string is too long."

    * Cause: Result of concatenation of string exceeds the maximum size.

    * Action: Make sure that the result is less than the maximum size.

    ---------------------------------------------------------------------------

    I can't change the logic of the code since I'm trying to do Informatica at the back done and compare performance between Informatica and Oracle DB. Is there another solution for errors? I add only the SQL query that is part of the PROCEDURE for easy viewing. Please help me. Thank you!

    SELECT "UPDATE XXAFL_MON_FACTS_F SET TASK_WID ='"

    || NVL (TO_CHAR (TASK_WID), 'NULL')

    |', EXECUTION_PLAN_WID ='

    || NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL')

    || ', DETAILS_WID ='

    || NVL (TO_CHAR (DETAILS_WID), 'NULL')

    |', SOURCE_WID ='

    || NVL (TO_CHAR (SOURCE_WID), 'NULL')

    |', TARGET_WID = '

    || NVL (TO_CHAR (TARGET_WID), 'NULL')

    || ', RUN_STATUS_WID ='

    || NVL (TO_CHAR (RUN_STATUS_WID), 'NULL')

    |', SEQ_NUM ='

    || NVL (TO_CHAR (SEQ_NUM), 'NULL')

    |', NAME = "'

    || NVL (TO_CHAR (NAME), 'NULL')

    || ' ', NO_POSITION = "'

    || NVL (TO_CHAR (INSTANCE_NUM), 'NULL')

    ||'' ', INSTANCE_NAME = "'

    || NVL (TO_CHAR (INSTANCE_NAME), 'NULL')

    || ' ', TYPE_CD = "'

    || NVL (TO_CHAR (TYPE_CD), 'NULL')

    ||'' ', STATUS_CD = "'

    || NVL (TO_CHAR (STATUS_CD), 'NULL')

    ||'' ', START_TS ='

    || DECODE (START_TS, ",' to_date(''e))

    || To_char (START_TS, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    || ', END_TS ='

    || DECODE (END_TS, ",' to_date(''e))

    || To_char (END_TS, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    |', DURATION = '

    || NVL (TO_CHAR (DURATION), 'NULL')

    |', STATUS_DESC = "'

    || NVL (TO_CHAR (STATUS_DESC), 'NULL')

    || ' ', DBCONN_NAME = "'

    || NVL (TO_CHAR (DBCONN_NAME), 'NULL')

    ||'' ', SUCESS_ROWS ='

    || NVL (TO_CHAR (SUCESS_ROWS), 'NULL')

    || ', FAILED_ROWS ='

    || NVL (TO_CHAR (FAILED_ROWS), 'NULL')

    |', ERROR_CODE = '

    || NVL (TO_CHAR (ERROR_CODE), 'NULL')

    |', NUM_RETRIES ='

    || NVL (TO_CHAR (NUM_RETRIES), 'NULL')

    || ', READ_THRUPUT ='

    || NVL (TO_CHAR (READ_THRUPUT), 'NULL')

    |', LAST_UPD = '

    || DECODE (LAST_UPD, ",' to_date(''e))

    || To_char (LAST_UPD, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    |', RUN_STEP_WID = "'

    || NVL (TO_CHAR (RUN_STEP_WID), 'NULL')

    || ' ', W_INSERT_DT = '

    || DECODE (W_INSERT_DT, ",' to_date(''e))

    || To_char (W_INSERT_DT, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    |', W_UPDATE_DT = '

    || DECODE (W_UPDATE_DT, ",' to_date(''e))

    || To_char (W_UPDATE_DT, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    || ', START_DATE_WID ='

    || NVL (TO_CHAR (START_DATE_WID), 'NULL')

    |', END_DATE_WID = '

    || NVL (TO_CHAR (END_DATE_WID), 'NULL')

    |', START_TIME ='

    || NVL (TO_CHAR (START_TIME), 'NULL')

    |', END_TIME ='

    || NVL (TO_CHAR (END_TIME), 'NULL')

    ||' WHERE INTEGRATION_ID = "'

    || INTEGRATION_ID

    ||''';' AS Column

    OF XXAFL_MON_FACTS_F;

    Hello

    ORA-01489 is one of these error messages that really means what he says. The error message you posted pretty much sums up the situation.

    What version of Oracle are you using?  (You must still include this whenever you have a question.  See the FAQ forum: Re: 2. How can I ask a question on the forums? )

    From 12.1 of the Oracle, there is an option to allow VARCHAR2s in SQL to be as big as 32767octets.  (The default is 4000).

    Otherwise, if you can't change the code, either do not run. or ensure that the concerned channels are quite short so the error does not occur.

  • Create a concatenated string of attributes on Multiple Instances of the entity

    Hello world

    I wonder if someone has met this challenge, or ideas. We have been asked if OPA could produce a string containing the concatenation of the values of an attribute of text stored on multiple instances of an entity. The number of instances is variable, generally.

    Example: Assume that the attribute is "DayOfWeek", and we have an entity called "Appointment", with the authorities:

    appointment_1 (DayOfWeek = 'Monday')

    appointment_2 (DayOfWeek = 'Thursday')

    appointment_3 (DayOfWeek = 'Sunday')

    ... we need produce a string "AllAppointmentDays" = "on Monday, Thursday, Sunday.

    We don't think that this is possible without either: (a) an external system to generate the resulting concatenated string of the output, or (b) modules with the command of the approach to read the white paper Oracle in Nov 2012 (approaches to limits, thresholds and preferences), combined with hard-coding and the constraints on the length of the string.


    I was wondering if there was a better way to do it without external script or forced / hardcode.

    Thank you

    -Patrick

    I don' t know that an external implementation would be easier, but it could be more effective if well written.  Internal or external, you must decide how you want to classify or ordering entities before concatenation.  The order must be absolute (i.e. without fasteners).  Policies to 'solve' the first entity out of string and the string output of the policy to concatenate a string to produce this entity = the entity 'before' + ', ' + attribute of the entity are fairly simple.

    I guess the answer is: it is not necessarily a better way to do it in OPM and I don't think that there are constraints, or a more effective solution is necessary unless you already know you will work with a very large number of entities or very long strings.

  • ORA-28500 + 'String data, right truncation' when selecting nvarchar (max)

    Hello

    I was able to put in place a db Oracle 11.2.0.1 link to SQL Server 2005 using DG4ODBC.

    When you try to select a column with the data type of nvarchar (max) in the db link I get the following error:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}
    ORA-02063: preceding 2 lines from SQLSERVER_DBLINK
    The actual data in the column do not exceed 31 characters, but the application still does not work.

    Any suggestions?
    Thank you.

    checked with DataDirect ODBC driver that returns for col2 = nvarchar (max) and col3 = varchar (max)

    Entry hgopcda at 2010/12/23-11: 55:17
    Column:2 (col2): dtype:-10 (WLONGVARCHAR), prc / scl:1073741823 / 0, nullbl:1, radix: 0 byte: 2147483647, sign: 1
    Out of hgopcda, rc = 0 to 2010/12/23-11: 55:17
    SQLFetch ENTER [1 args]
    I [0] StatementHandle: h0x0816ff40
    ---> RC = 0 (TRC = 0)
    OUTPUT SQLFetch [1 args]
    I [0] StatementHandle: h0x0816ff40
    Entry hgopcda at 2010/12/23-11: 55:17
    Column:3 (col3): dtype:-1 (LONGVARCHAR), prc / scl:2147483647 / 0, nullbl:0, radix: 0 byte: 2147483647, sign: 1
    Out of hgopcda, rc = 0 to 2010/12/23-11: 55:17

    This driver correctly fills the buffer (0 no equal) and function of the buffer the gateway decided to map it to:
    DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
    12 Y VARCHAR 20 20 0 / 0 0 0 200 col1
    -1 LONGVARCHAR Y 0 0 0 / 0 0 0 220 col2
    -1 LONGVARCHAR Y 0 0 0 / 0 0 0 220 col3

    and in Oracle when performing a describe statement I see the column as LONG.

    This type of mapping from nvarchar to LONGVARCHAR works in Dg4ODBC if the Oracle DB character set = Unicode. => and you meet this requirement.

    ==>> If it looks like a driver problem, and it might be useful to use a different driver.

    Published by: kgronau on December 23, 2010 12:02

  • Function - return multiple values in a concatenated string

    Hello

    Is it possible for a function return a concatenated string (combining more than one number). I'm trying to return the purchase by the introduction and invoice_id number and code order number, but an invoice_id can have several PO with the same code number. I want to concatenate the PO numbers with commas, for example

    10124, 10090, 10987

    At the present time, the function returns NULL for those cases that have more than one purchase order number.

    Thank you
    func_get_po(i.invoice_id, cc.code_combination_id) "PO No",
    func_get_po_requester(i.invoice_id, cc.code_combination_id, func_get_po(i.invoice_id, cc.code_combination_id)) "PO Requester",
    

    Of course, this can be done without any problem.
    If it returns NULL, then you must debug function and check the operating logic. I know that it will take a little of your time, but not problems with the logic of syntax and concatenation.

  • Object string date

    Hello
    Is it possible to convert the string "date (2006, 5, 29) ' in a date object?

    Thank you
    Jason

    > Is it possible to convert the string "date (2006, 5, 29) ' in a date object?

    If
    aString = "date (2006, 5, 29).
    then don't
    adate = value (aString)
    do you want?
    Unfortunately, I do not think that the seconds property (very useful)
    remains intact when you convert a date <->leave a string - can you
    give an overview of what you want to achieve? For example, the
    vList xtra can record all the data types of the Director without having to make
    any conversion.

  • Return the string Date/time format incorrect output...

    Here's a small sub - VI that I create out the day of the week, day of month, month and year in the form of a table of U16:

    The Date/time string VI get is supposed to produce a string of date in the format "DD/MM/YY" when the enum 'short' is selected. Instead, I get this:

    It seems that the VI is "broken" or documentation is incorrect. Someone at - it to another incountered?

    I'm under LabView 2015 on Windows 7.

    Much too complicated.

  • How to convert string data from the serial port to double?

    Hello!

    I am very new in LabView and attempt to read data from an OHAUS pioneer pa-313 electronic scale via RS232 serial port. I use the VISA. I can read the data and see it as a string to the screen, but when I try to convert it to a double, it is just the integer and decimal numbers have disappeared. Here's the question: what can be the problem? How can I get the decimals as well?

    What is your normal decimal point?. or?

  • the analysis of string data

    Hi all

    I got the series communation data string in this format:

    Bridge of fuse HtrPwrV VDispV/C PAO V/C DTM V/C DiffC NC
    OK VALIDATES 1.80 0.95 3.16 0.53 537 29.6
    369 647 110

    And I want to extract some value from it. I realized that they are separated with spaces between them. So I thought about transfer them into an array and then extract some lines/columns there. But I don't know how to do.

    Could you give me an idea. Or if you have a better way, then please show me!

    Thank you

    Here is a way.

  • Restrict user access to admission 0-9 for the string data

    Hello

    I want to this control at the entrance façade. This control allows the user to choose between 0-9. For example 0 1 2 3 4 5 6 7 8 9.

    Control do not allow the user to upgrade-1-2-3... 10 11 or... or decimal.

    This number will be still converted to a string as the name of a folder to create.

    Thanks for posting to this thread and help

    PX

    Firstly, right click and select ' entire representation (i.e. U8), and then right click then select data entry. Uncheck "use default limits" and enter the desired range.

    If you have noticed, everything is done by right-clicking. You should be familiar with all the right click options. Did you do tutorials?

  • Size of the concatenated string variable?

    Hi all

    I have the following question:

    In Labview, there is a function called concatenate strings. When I want to 'Add' three strings I can pull the string to concatenate to the size three for three entries.

    Is there a possibility to implement a digital control where I can enter a number that ranges from my entries for the string concatenation function?

    If I want to add three channels I enter 3 in my digital control, my function gets three entries. After my program that I want to have five added channels so I would like to enter 5. Is it possible to do this?

    Thank you for your help in advance.

    Best regards

    Tresdin

    It seems to me that your program should be in a loop FOR, autoindexing on the points table.

Maybe you are looking for