PIVOT and string concatenation

Hi everyone ,


I would like to use a pivot query to build a report .is it possible concatenation in Pivot report.

My requirement is

Vinoth RAM Sam Rahul Vimal Arun
Visitors
Neo tools / connections of mercury / R.Industries / LAU /Forge
Fittings of mercury /R.Industries / /Forge LAUForge/MercuryR.Industries / UAL


Any guidance would be appreciated.


Thank you

Colette

Colette wrote:

I would like to use a pivot query to build a report .is it possible concatenation in Pivot report.

My requirement is

Vinoth RAM Sam Rahul Vimal Arun
Visitors
Neo tools / connections of mercury / R.Industries / LAU /Forge
Mercury Fittings/R.Industries / LAU /Forge Forge/Mercury R.Industries / UAL

Any guidance would be appreciated.

Yes, it is possible to perform the aggregation of the chain in a pivot report.

How depends completely on the information about your environment, data model and the data you have provided not: How to get the answers from the forum

See also Re: 4. How can I convert rows to columns?

Tags: Database

Similar Questions

  • String concatenation without loop

    Hello

    I have an array of strings containing numbers in engineering as format below:

    5.34000E - 10

    3.23245E - 1

    -8.43560E - 9

    I'm trying to concatenate to this array of strings to a header, which is a unique, formed string using the string concatenation function.  So, I would that my output as follows:

    Header line 1

    Header line 2

    Row header 3

    5.34000E - 10

    3.23245E - 1

    -8.43560E - 9

    However, the result is currently reads:

    Header line 1

    Header line 2

    Row header 3

    5.34000E - 103.23245E - 1 - 8.43560E - 9

    I can get the desired result using a loop for, but I do not like concatenate them strings function seems to run very slowly in the loop.  Is there a way I can get the desired result without using a loop for?

    Thank you.

    It is a real possibility that concatenate strings runs slowly in a loop For. change the statement "I find that Array Build runs slowly in a for loop" and we would get a serious discussion of fly memory. Absolutely no difference here, maybe even worse because the strings are more difficult to predict than most data types. There is perhaps not a miracle solution to make it faster, but there might be ways to ensure there are no longer than necessary. I probably just build the header as its own array of channels and build table allows to reach the two (concatenate entries of course). Writing to text file will manage an array of strings directly when the time comes.

  • Need Firefox & Bing and when I open Firefox I ref A and string; then when I get to Bing, no bookmarks toolbar, etc. or way to access messages.

    I did my browser Bing and it was working fine until today. When I open Firefox I get a message: Ref, then a long string of characters. I click on the Home icon and string changes. After doing this several times, I get the Bing search page. I don't get the startup of Firefox bookmark with the toolbar that has my book, history etc.. I can't clear the cache, if I can't the history tab. If I'm going to the mozilla firefox program folder and open it, there are a tool bar but can't erase recent history, etc. it. I don't have an administrator and a password on my home desktop. It's just me. I tried to follow your suggestions, but they do not apply to my situation. I don't really know if it is a firefox problem or bing. I've used google before bing and had no problems; I just wanted to try bing.

    You can attach a screenshot?

    Use a type of compressed as PNG or JPG image to save the screenshot.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode safe or make changes.
  • command evaluated Pivot and UnPivot in the select statement

    My research assessing the order of the select statement is below.
     1 from
     2 where (Join condition)
     3 start with
     4 connect by
     5 where (filter of rows)
     6 group by
     7 having
     8 model
     9 select
    10 order by
    My question is Where clause Pivot and UnPivot clause ?

    http://download.Oracle.com/docs/CD/E16338_01/server.112/e10592/statements_10002.htm

    Well the pivot is applied to a single table or an inline or a view - so it's going to be like any other table or view in the list - it will be first

    select b.BUSINESS_OBJECT_CATEGORY_DESCR, a.c, a.d
    from
     (select PAY_METHOD_TYPE_CODE, BUSINESS_OBJECT_CATEGORY_CODE
      from target_odi.business_object_pay_methods)
     pivot (count(PAY_METHOD_TYPE_CODE)
             for PAY_METHOD_TYPE_CODE in  ('D' as d, 'C' as c)) a ,
    target_odi.business_object_categories  b
    where a.BUSINESS_OBJECT_CATEGORY_CODE = b.BUSINESS_OBJECT_CATEGORY_CODE
    

    So for the SQL above the pivot is first assessed before the join between A and B.

  • The extract number and String and replace with space

    Hello

    I need to extract number and string of a data table. I use Oracle 8i

    For example: 001FI025A, 001PDIT002, 001UXSV029AA
    I want to separate as follows
    001 025 A FI

    001 002 RESULTED

    USXV 029 A 001


    How can I achieve this? Any help is very useful.

    Thank you

    Hello

    Welcome to the forum!

    You must change "001FI025A" to the name of the column. Example:

    SELECT '001FI025A',
           SUBSTR(TRANSLATE('001FI025A',
                            '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                            '0123456789                          '),
                  1,
                  INSTR(TRANSLATE('001FI025A',
                                  '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                  '0123456789                          '),
                        ' ')) AS ELEMENT_1,
           SUBSTR(LTRIM(TRANSLATE('001FI025A',
                                  '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                  '          ABCDEFGHIJKLMNOPQRSTUVWXYZ')),
                  1,
                  INSTR(LTRIM(TRANSLATE('001FI025A',
                                        '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                        '          ABCDEFGHIJKLMNOPQRSTUVWXYZ')),
                        ' ')) AS ELEMENT_2,
           LTRIM(SUBSTR(TRANSLATE('001FI025A',
                                  '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                  '0123456789                          '),
                        INSTR(TRANSLATE('001FI025A',
                                        '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                        '0123456789                          '),
                              ' '))) AS ELEMENT_3,
           LTRIM(SUBSTR(LTRIM(TRANSLATE('001FI025A',
                                  '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                  '          ABCDEFGHIJKLMNOPQRSTUVWXYZ')),
                  INSTR(LTRIM(TRANSLATE('001FI025A',
                                        '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                        '          ABCDEFGHIJKLMNOPQRSTUVWXYZ')),
                        ' '))) AS ELEMENT_4
      FROM DUAL;
    

    Kind regards

  • String concatenation and put into registry to offset slowing computer

    Hi all

    I tried to create a record of comms between LabVIEW and an Arduino by concatenating the current message with previous posts and put in a shift register.  After a few hours the LabVIEW began to crawl.

    I had a vague idea that you could write a string indicator without wiping the old content.  I thought that if I could do that is there not a huge overload copy all a larger string.

    Am I dreaming?

    Thank you

    If you need registration integer comm I would say the comms streaming the file.  Make sure you put a Boolean value in to turn off logging.

    Usually, it's one of those things you just do everything in debugging.  If so use OR spy rather than writing your own debugger.

  • Why the operator: = is not working when it is in a string concatenated and assigned to a variable?

    I met with an error ORA-00904: "V_DEPTNO": online: 14 (My PL/SQL code is below), while playing with the cursor of reference (for the end of the apprenticeship).
    I debugged it and the problem was solved and it returns the desired output.  However, the solution of it is not sensible for me even if the output
    has been posted/successfully recovered.    Here's a clearer description of the code:


    On line 14, I have a variable called stmt and stmt value concatenated with the string "where deptno =: v_deptno' and then finally assigned to this stmt variable."

    In this line, he returned ORA-00904 but it was fixed by using =: operator instead of the = operator.

     stmt:=stmt || 'where deptno=:v_deptno'; 
    

    In sql pure when it is intended to add where clause for such purpose, the = comparison operator is used.
    Example:

    Select empno,ename,sal from emp where deptno=10;
    

    But in my pl/sql code, =: operator was used.

    Why is this? Can someone explain what it is? Even if I did my research, but I couldn't find the explanation yet.

    All what I've understood so far, is that this may mean the following (I may be wrong):
    1 - everything first, assign the value 10, of v_deptno, who was declared, to easily compare.
    2. compare the value assigned with deptno.
    On this basis, recover data.


    Thus, he worked as a = + tour operator defined in another high programming language such as c#... etc.
    Example:

    int a = 0;
    
    a =+ 1;    //  a was declared as an integer that has value 0
            // then  we tried to increment by 1 or add by one
             // so it would be  a=a+1;  
                    //which is  a=0+1;
    

    It works the same?

    Here's my complete code pl/sql, just in case...

    --ref cursor
    declare 
    
    type emp_refcur  is ref cursor;
    emp_cv emp_refcur;
    emprec emp%rowtype;
    stmt varchar2(299):= 'select * from emp';
    v_deptno number:=10;
    
    begin
    
    if v_deptno is null then
      open emp_cv for stmt;
    
    else
      stmt:= stmt || ' where deptno=:v_deptno';
      open emp_cv for stmt using v_deptno;
    end if;
    
    loop
    fetch emp_cv into emprec;
    exit when emp_cv%notfound;
    dbms_output.put_line(emprec.empno||chr(9)||emprec.ename||chr(9)||emprec.deptno);
    end loop;
    close emp_cv;
    end;
    /
    
    
    
    
    
    
    
    

    I would you to explain and share with me something to read or give me some clues.

    Thanks in advance!

    In this line, he returned ORA-00904 but it was fixed by using =: operator instead of the = operator.

    There is no "=:" operator.

    The colon character ': ' is used to define a binding (placeholder) variable in the query string.

    The value of this variable must be passed ("linked") after analysis and run step so that the query is executed correctly. That's what the USING clause in your code.

    Thus, he worked as a = + tour operator defined in another high programming language such as c#... etc.

    Example:

    1. int a = 0;
    2. a = + 1;    one has been declared as an integer that is set to 0
    3. then we tried to increment by 1 or add one
    4. so it would be a = a + 1;
    5. which is a = 0 + 1;

    It works the same?

    No, nothing to do with it.

  • Pivoting manipulation and string

    Hi guys I'd appreciate your help with this.

    I have a table with a column unique = A1, A2, B1, C1, C2, I need to rotate and write the following lines in a second table again as a single column;

    A1, B1, C1
    A1, B1, C2
    A2, B1, C1
    A2, B1, C2

    An example would be great. Thanks in advance.
    Gas

    Hello

    Gas wrote:
    ... Hope that it will cover all your questions

    N °

    Frank Kulash wrote:
    ... Explain as clearly as possible the business rules. Why don't you not rows in the second table as follows:

    C1, B1, A1
    B1, B1, B1
    A1, A2, B1
    

    or do you have?
    You know, in advance, that strings all begin with 'A', 'B' or 'C' or the query should understand what are the different possibilities?

    I made several assumptions.

    INSERT INTO     target_tab (col1)
    WITH  normalized_source_tab     AS
    (
         SELECT     REGEXP_SUBSTR ( col1
                                , '[^ ,]+'
                         , 1
                         , LEVEL
                         )          AS txt
         ,     DENSE_RANK () OVER ( ORDER BY  REGEXP_SUBSTR ( col1
                                                                     , '[^ ,0-9]+'
                                                  , 1
                                                  , LEVEL
                                            )
                                 )          AS prefix_num
         FROM     source_tab
         CONNECT BY     LEVEL <= 1 + LENGTH (col1)
                                 - LENGTH (REPLACE (col1, ','))
    )
    SELECT     SUBSTR ( SYS_CONNECT_BY_PATH (txt, ', ')
                , 3
                )
    FROM     normalized_source_tab
    WHERE     CONNECT_BY_ISLEAF     = 1
    START WITH     prefix_num     = 1
    CONNECT BY     prefix_num     = 1 + PRIOR prefix_num
    ;
    

    Among other things, I guessed that the elements with commas in sorce_tab.col1 always respect the following diagram:
    (1) option spaces, be ignored
    (2) non-chiffres, which deterrmine postion in target_tab.col1
    (3) figures
    Two (2) or (3), but not both, may be omitted. If both are present, (3) can come before (2).

  • String concatenation and vi speed

    I'm trying to convert data waveform .tdms in ASCII file in a particular format in order to be read by other software. The vi that I wrote (attached) is capable of doing the job but at a very slow pace. The vi in takes about 20 minutes to complete one a second data (22050 samples). This American too slow because I intend to work with waveform data at 1.5 million samples (it takes 16 hours). I think that the problem is due to the the string concatination. Does anyone has any suggestion how I can improve on this performance of vi with regard to its speed. Thank you.

    LabVIEW 2011 running on a laptop Windows 7 (i5 2.50 GHz with 8 G of RAM)

    Sorry for this question.  I had solved after removing the 'wait until the next multiple ms' vi from the iteration of the loop.

  • Newbie need help with string concatenation function.

    I'm totally new to LabView and am trying to work on a project that someone worked in the past.  I came to a string function concatenated on one of the existing provisions and only seen on some entries of the string function has an order of 'rel' and 'g '.  I don't know if it's a common command or what it is.  This is VI is that it requires a user to enter a base dimension (x-axis starting point and end point) and executes the steps in the sample desired within the "point of departure" and "end point".  "a3" is the name of the x-axis.  but I'm not sure of the meaning 'rel' and 'g '.  I posted part of the diagram.  Any help would be appreciated.  Thank you!

    This isn't a question of LabVIEW, but very specific to the device connected to the other end of the serial port. Do you have any documentation for it?

    Basically, the program needs form a consiting of command of a delimiter character, value and end of key word, etc. for example.

    Who wrote this program. It seems too complex and convoluted. Under certain conditions, it seems to send two commands at the same time, and there is no way to determine the order in which they run. Maybe it doesn't matter, but maybe it does. Most likely, what you need is a single structure dealing with a case for each condition and a unique series in the end writing. You can reach the actual program? There are also a lot of duplicate code. What is the purpose of the operations 1 x? Is this a Subvi?

  • With the help of strings concatenated in the Structure of the case

    Hello world

    I'm all new to LabView. Right now, I just trying to build a graphic program of different waves (such as the sine or square) with or without different types of noise. I concatenated two strings and then participating in a housing structure. Nothing graphic when have two concatenated options, but it does not work when it's just the different types of wave are chosen. I think it might have to do with how I'm the each case titration structure option, but I'm not sure. For any help or suggestion is greatly appreciated.

    I would use a sequence of structures of the case. Take it step by step. Use enumerations for readability.

  • OOM playing with StringBuilder and String

    Hi list

    I want to check the diff between concatination partial string using stringbuffer (pmd create a suspicion around the sign + inside the stringbufffer.append).

    now I write follow the example of code:

    public class StringBuffererf

    {

    Public Shared Sub main (String [] args)

    {

    nrLoops long = 100000000;

    StringBuffer sb = new StringBuffer();

    Start long = System.currentTimeMillis ();

    for (int i = 0; i < = nrLoops; i ++)

    {

    If (I / 1000 == 0)

    {

    SB = new StringBuffer();

    }

    SB. Append ("asd1" + "asd2" + "asd3" + "TSA4" + "asd5" + "asd1" + "asd2" + "asd3" + "TSA4" + "asd5");

    }

    System.out.println ("time:" + (System.currentTimeMillis () - start));

    Start = System.currentTimeMillis ();

    for (int i = 0; i < = nrLoops; i ++)

    {

    If (I / 1000 == 0)

    {

    SB = new StringBuffer();

    }

    SB. Append ("asd1");

    SB. Append ("asd2");

    SB. Append ("asd3");

    SB. Append ("asd4");

    SB. Append ("asd5");

    SB. Append ("asd1");

    SB. Append ("asd2");

    SB. Append ("asd3");

    SB. Append ("asd4");

    SB. Append ("asd5");

    }

    System.out.println ("time:" + (System.currentTimeMillis () - start));

    }

    }

    an interesting around this code is: partial + operations within a stringbuffer is faster then use each time an addition.

    But if I increase the number of loops I get an oom.

    IMHO I don't expect this, because with

    If (I / 1000 == 0)

    {

    SB = new StringBuffer();

    }

    I have however, that release the object and free memory also.

    I have sore around it and I've got the cause of the oom.

    suspicion and or advanced are welcome

    Best regards

    Dietmar

    The expression ' I / 1000 ' is not what you think it does.

    You test not concatenation of the way you wrote it because the compiler, not the virtual machine does concatenation.

    Presumably, you understand the difference between StringBuffer and StringBuilder.

  • log in - help sql: error ORA-01489: string concatena result

    Here's a sql query and I am cooking a decoding, but since there are several columns invloved when I try to run it I get the following error:
    ORA-01489: result of concatenating string is too long

    Any kind of help is appreciated, I need to get it going or I'm dead :(

    Concerning
    Rahul



    SQL:
    Select sys_connect_by_path(c.decode_prep,'-') decode_prep
    from (select "DECODE (BIAPPS_11.'|)") substr (b.all_cols, InStr(b.all_cols,',',1,a.RN) + 1, InStr(b.all_cols,',',1,a.RN+1)-InStr(b.all_cols,',',1,a.RN)-1). «, » ||' RAHULKALRA.' | substr (b.all_cols, InStr(b.all_cols,',',1,a.RN) + 1, InStr(b.all_cols,',',1,a.RN+1)-InStr(b.all_cols,',',1,a.RN)-1) |', "1", "0")' decode_prep, rownum curr, prev rownum-1
    from (select rownum rn
    Double connect rownum < =.
    (select (length('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM ,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT ,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM')
    - length(replace('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM ,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT ,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM',',')))+1 total_cols
    the double)), (select ',' |') ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE ,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT SRC_EFF_FROM_DT , SRC_EFF_TO_DT, EFFECTIVE_FROM_DT, EFFECTIVE_TO_DT, DELETE_FLG, CURRENT_FLG, W_INSERT_DT, W_UPDATE_DT, DATASOURCE_NUM_ID, ETL_PROC_WID, INTEGRATION_ID, SET_ID, TENANT_ID, X_CUSTOM' | (',' double all_cols) b) c
    Start by curr = 1
    Connect prior curr = prev
    length (sys_connect_by_path(c.decode_prep,'-')) desc order

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

    same as above sql only the difference is here I'm pulling the first record in the result set that top query returns:

    Select ltrim (replace(decode_prep,'-','||'),'| ') decode_prep
    of (sys_connect_by_path(c.decode_prep,'-') select decode_prep)
    from (select "DECODE (BIAPPS_11.'|)") substr (b.all_cols, InStr(b.all_cols,',',1,a.RN) + 1, InStr(b.all_cols,',',1,a.RN+1)-InStr(b.all_cols,',',1,a.RN)-1). «, » ||' RAHULKALRA.' | substr (b.all_cols, InStr(b.all_cols,',',1,a.RN) + 1, InStr(b.all_cols,',',1,a.RN+1)-InStr(b.all_cols,',',1,a.RN)-1) |', "1", "0")' decode_prep, rownum curr, prev rownum-1
    from (select rownum rn
    Double connect rownum < =.
    (select (length('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM ,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT ,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM')
    - length(replace('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM ,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT ,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM',',')))+1 total_cols
    the double)), (select ',' |') ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE ,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT SRC_EFF_FROM_DT , SRC_EFF_TO_DT, EFFECTIVE_FROM_DT, EFFECTIVE_TO_DT, DELETE_FLG, CURRENT_FLG, W_INSERT_DT, W_UPDATE_DT, DATASOURCE_NUM_ID, ETL_PROC_WID, INTEGRATION_ID, SET_ID, TENANT_ID, X_CUSTOM' | (',' double all_cols) b) c
    Start by curr = 1
    Connect prior curr = prev
    length (sys_connect_by_path(c.decode_prep,'-')) desc order)
    where rownum = 1

    Published by: Mac_Freak_Rahul on November 28, 2012 01:31: in the first sql ')'
    removed after desc in the last line so now this query begin and will throw an error.

    Mac_Freak_Rahul wrote:
    @Blushadow:

    (1) first of all, I'm sorry for not posting my question according to the rules of the forum, next time I'll take care of that.
    (2) Secondly, thanks for the solution, I have no exp with clob, but I can take a deeper look later.
    (3) I just want to know if there are any other wayout, you mean the second concatenation of 4000 bytes sys_connect_by_path exhausts it might return this error?

    SYS_CONNECT_BY_PATH returns a VARCHAR2 data type. In SQL VARCHAR2 data type is limited to 4000 bytes, then Yes, you will get an error if the data that you generate is greater than 4000 bytes (and I say bytes rather than characters, because if your database uses a multibyte multi character set could be as little as 1000 characters)

    I'm right now stable for a table who got 62 columns... I have tables that have 200 close passes: (, great, if you can throw some light on this, if your the best way and the only one to achieve?)

    If you really need to concatenate strings together which exceeds 4000 bytes, then Yes you must use CLOB to store data. Oracle does not provide a native way to aggregate together in a CLOB datatype string, so why you need to write your own function.

    PS: just a quick overview of my value, it will be by comparing schema1.table (s) with shema2.table (s) where table_name must be the same...

    So why are you information concatenation together to achieve this goal?

  • Table with numeric columns and string

    Hello everyone. I am a new labviewer, so I have 2 questions fundamental.

    1. I found this basic timer loop, which I need to get inside my structure of the event. How to wire this loop with my writing and reading?

    2. I need to wire my digital indicator "Elapsed time" with my table, so I want the 'measure' in the first column and "elapsed time" in the second column. I know I can't mix string and digital indicator in the same table, so the best way would be to make two tables 1 d (digital channel), or there are more basic ways to correct the problem?

    Thanks in advance

    Orlando

    2010:

  • Extra character and String worksheet line to read

    Hi all

    I tried to look, but no idea yet. I'm using labview 7.1 and try to play a file spreadsheet string in an array of strings, but I got the extra character at the beginning of the file and an additional line in each line. I tried to insert a value in the offset of the point of sale, can solve the problem of extra character, but he does not feel. Text file, source code and attached result. Can anyone explain that?

    Thank you very much.

    Hello Nefertari,

    your file contains this extra character (I think it's a unicode file), but they do not show the normal Editor. You can see if you open your file with Word.

    Mike

Maybe you are looking for