Add point comma as field delimiter in the output column

Hi all

Please guide me to add a semi as betweent grouped field delimiter column

We say that the regular output is as below
Ename
Mike
Robert Mike
Robert John Mike

Now i want the output as

Ename
Mike
Robert ; Mike
Robert ; John ; Mike
Thanks in advance.

Or you can try this,

SQL> WITH T
  2       AS (SELECT 'Mike 10,000 20' str FROM DUAL
  3           UNION ALL
  4           SELECT 'Bill' FROM DUAL)
  5  SELECT REPLACE (TRIM (str), ' ', ';') str
  6    FROM t;
STR
--------------
Mike;10,000;20
Bill

2 rows selected.

SQL> 

G.

Tags: Database

Similar Questions

  • Can we add point form, form create shaped with the report Option.

    Hello

    I created the Page report form.
    Now, I want to add an article on the form as Textfield.
    is it possible, thanks to delete the page, can add us the article into shape.
    If Yes, how can I do.

    Thanks

    Yes,

    Just go to the page of the form, add a page element to the region where all elements of the online form and follow the steps. When you get to the source, set type database column and the value of the source as column name.

    Van
    Trent

  • Report Sage with different users in the output column

    Hi all

    IM using Oracle 10 g Release 2.

    I have a Table Transaction_Details as below

    Posted in forward to username

    14/02/2012 50 25 aa
    14/02/2012 20 0 aa
    14/02/2012 110 20 bb
    14/02/2012 100 30 bb
    14/02/2012 150 25 cc
    15/02/2012 75 20 aa
    15/02/2012 110 40 bb
    16/02/2012 100 45 cc
    16/02/2012 150 25 bb

    I want the result of output as,

    Date uploaded waiting for user uploaded in expectation of the user uploaded the user pending
    14/02/2012 70 25 210 50 150 25 cc aa bb
    15/02/2012 75 20 110 40 bb aa
    16/02/2012 150 25 bb 100 45 cc

    But,

    I can able to generate output using Group By function,.

    14/02/2012 70 25 aa
    14/02/2012 210 50 bb
    14/02/2012 150 25 cc

    Kindly share your idea to do this.

    Thanks to the advance, im trying to get outout through a function,

    Is it Possible in Sql and Plsql.

    Looks like you want something like that...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select to_date('14/02/2012','DD/MM/YYYY') as dt, 50 as up, 25 as pe, 'aa' as usr from dual union all
      2             select to_date('14/02/2012','DD/MM/YYYY'), 20, 0, 'aa' from dual union all
      3             select to_date('14/02/2012','DD/MM/YYYY'), 110, 20, 'bb' from dual union all
      4             select to_date('14/02/2012','DD/MM/YYYY'), 100, 30, 'bb' from dual union all
      5             select to_date('14/02/2012','DD/MM/YYYY'), 150, 25, 'cc' from dual union all
      6             select to_date('15/02/2012','DD/MM/YYYY'), 75, 20, 'aa' from dual union all
      7             select to_date('15/02/2012','DD/MM/YYYY'), 110, 40, 'bb' from dual union all
      8             select to_date('16/02/2012','DD/MM/YYYY'), 100, 45, 'cc' from dual union all
      9             select to_date('16/02/2012','DD/MM/YYYY'), 150, 25, 'bb' from dual)
     10  --
     11  -- end of test data
     12  --
     13  select dt
     14        ,max(decode(rn,1,up)) as up_1
     15        ,max(decode(rn,1,pe)) as pe_1
     16        ,max(decode(rn,1,usr)) as usr_1
     17        ,max(decode(rn,2,up)) as up_2
     18        ,max(decode(rn,2,pe)) as pe_2
     19        ,max(decode(rn,2,usr)) as usr_2
     20        ,max(decode(rn,3,up)) as up_3
     21        ,max(decode(rn,3,pe)) as pe_3
     22        ,max(decode(rn,3,usr)) as usr_3
     23  from (
     24        select dt, up, pe, usr
     25              ,row_number() over (partition by dt order by usr) as rn
     26        from (
     27              select dt, sum(up) as up, sum(pe) as pe, usr
     28              from t
     29              group by dt, usr
     30             )
     31       )
     32* group by dt
    SQL> /
    
    DT                         UP_1       PE_1 US       UP_2       PE_2 US       UP_3       PE_3 US
    -------------------- ---------- ---------- -- ---------- ---------- -- ---------- ---------- --
    14-FEB-2012 00:00:00         70         25 aa        210         50 bb        150         25 cc
    15-FEB-2012 00:00:00         75         20 aa        110         40 bb
    16-FEB-2012 00:00:00        150         25 bb        100         45 cc
    

    Keep in mind that the projection of SQL is fixed, then you need to include enough max (decode statements... to satisfy the expected number of rows that will be rotated for each date.

    {: identifier of the thread = 2309172}

  • Remove the white space of the output column

    Select "create.user.name." | n.*, name_seq.nextval from (select '=' | cover names order by firstname asc) n;


    When I give, I have

    Create.User.Name.1 = test
    Create.User.Name.2 = test1 etc...


    That is to say after the create.user.name.1 it gives a lot of white space and then = test will appear.

    How can I get the format:

    Create.User.Name.1 = test
    Create.User.Name.2 = test1


    I tried to use the rtrim, replace, but not working. Advice would be useful

    Thank you

    Published by: 799358 on April 24, 2012 14:31

    Why not just

    select 'create.user.name.' || name_seq.nextval || "=" || n.lid
    from ( select lid from names order by firstname asc ) n ;
    

    and use to_char shaped the sequence if necessary.

    Kind regards
    Bob

  • Trying to create a Section to multiple columns with Sections of the single column before and after

    Is there a way to create a section break that is not default to a new page after I created columns on a page.  I created the columns and under them, I want to return to the normal formatting for the rest of the single page.  See picture attached.

    Any rejection of Pages v5 has a break of presentation which was present in the Pages ' 09 v4.3. This will allow you to transition to several columns and back to single column on the same page. In the v5 Pages, you can insert 3 text boxes and change the 3-column layout in the Middle text box. You use the toolbar item Insert to inject column breaks when you want to start a new list in the next column. I'll show this screenshot below.

    You can fake your layout in Pages v5 using 3 text boxes and setting 3 columns in the Central text area. Better to show the mode of provision for this and in a text box, the column outlines are not displayed. After each column list, you then choose column break the Insert point toolbar menu to move to the next column, add a list, repeat. Each column will expand downwards. Click on the following to enlarge.

    Pages ' 09 v4.3 using layout breaks Pages using 3 text boxes V5.6.1                                                      

      

  • 1013 JDev how 2 display number on a specific attribute on the output text table?

    Page 1: I created a form of parameter with 7 top search criteria fields and table of results of search or a Table read-only ADF downstairs. The setting is based on the application of top link where each parameter is as the corresponding field in a table and works very well!

    For Page 2: I want the page looking at the same research, same parameter table of search results albums and even down with the addition of display also count on a particular area so that when someone enters data into the fields of setting up, he would always check the table and show the results of all fields, but in the last column do a count on this field (totally separate from the default number of records to search entire JDEV).

    Is it possible to create as a count or count (*) function at the level of the line of text out? I tried to create a view based on a Select sql statement a, b, c, d, count (e) table, group by a, b, c, d, e and when I dragg this object that contains this sql statement from the data control panel, it gives me the correct regulation of all areas, including the last column to display the number of records for this field , but together does never change based on what has been entered in the parameter, it is as if he is not yet connected to it. For ex: I want to display the number of all students within the setting of the East region, on the contrary it shows total number for all regions, not specific to East.

    Hello:

    I worked on a very simple application form ADF search against table Scott.emp in the Oracle database.
    Now I see what you mean. The idea is probably you shouldn't directly drag and drop control of your data: directly in your jspx as «ADF search form» Here are the steps:
    (1) create your entity object, the view object and I'm in the model layer; (You have already done this, you do not have entity and your view may come of TopLink request;)
    2) double-click the View object in your project of "model"; Add a connection variable: type Bind_deptno Number. It's read in a number of dept on the search engine;
    (3) change the SQL statement of the Emp View object on the same place as 2); WHERE Emp.Deptno = NVL (: Bind_deptno, Emp.Deptno) this indicates ADF if the binding variable is bound to a value
    then use this value, or if it is null, just ignore it. That's the tricky part;
    (4) create a new JSF called "Search.jsp', which will be the search engine;
    (5) from App Module, select EmpView1 (EmpView is updatable, EmpView1 is read-only, but it is not serious on the research plan), drag and drop the EmpView1 on your
    Search.jsp as an array of the ADF (not a search ADF form). This ADF table then displays the result of the research;
    (6) of the control Module of the App, go to EmpView1 data, drag and drop a "ExecuteWithParams" on your search engine like settings-> parameter ADF
    Form, this will tell ADF you want to set the variable binding as an executable looking for shape parameter.
    That's all! and you're good to go. Do the same for the other variable binding (you have 7 search criteria, so you have set 7 bind variable by using the same logic here.
    Good luck and don't forget to mark my answer as "correct" it to make me a few partitions.

    Best regards
    Alex IBE

  • CAPTURE THE OUTPUT IN INSERT INTO SELECT AND DELETE

    Hi all


    INSERT into employee_history_arch select * from employee_history where employee_status = 'CP' and action_dt < (sysdate-32);
    commit;

    delete from employee_history where employee_status = 'CP' and action_dt < (sysdate-32);
    commit;

    I must capture both the output of the insert and delete the sql query and compare the two values for validation. I shouldn't use select count (*) before the delete statement. I shud exactly capture the output... How to do? Please help me

    We will have ' 30 deleted rows' or ' 30 inserted rows"in our tool... I need to capture that 'put out' in a variable and validate against the other

    This should be easy.

    SQL> set serverout on
    SQL> DECLARE
      2    v_rows_inserted PLS_INTEGER;
      3    v_rows_deleted  PLS_INTEGER;
      4  BEGIN
      5    INSERT INTO emp_temp
      6      SELECT * FROM emp WHERE deptno = 20;
      7    v_rows_inserted := SQL%ROWCOUNT;
      8    dbms_output.put_line('Rows Inserted: ' || v_rows_inserted);
      9    DELETE FROM EMP WHERE deptno = 20;
     10    v_rows_deleted := SQL%ROWCOUNT;
     11    dbms_output.put_line('Rows Deleted: ' || v_rows_deleted);
     12    IF v_rows_inserted = v_rows_deleted THEN
     13      dbms_output.put_line('They are same!');
     14    ELSE
     15      dbms_output.put_line('They are NOT same!');
     16    END IF;
     17  END;
     18  /
    Rows Inserted: 7
    Rows Deleted: 7
    They are same!
    
    PL/SQL procedure successfully completed.
    
  • How to load the file tabs with field-delimited a comma in an external table

    I am trying to create an external table in oracle 11 g r2. the script is as below. It fails if the field contains commas.

    for example, the following data will not be loaded.

    ERT 123, poipoipoi, yutio 567

    Please suggest how to solve this problem. Thank you!

    CREATE TABLE external_interaction
    (
    TAX_ID NUMBER (8).
    pubmed_id_list varchar2 (36),
    interaction_id_type varchar2 (36)
    )
    EXTERNAL ORGANIZATION
    (TYPE ORACLE_LOADER
    THE DEFAULT DIRECTORY ET_NCBI_DIR
    ACCESS SETTINGS
    (records delimited by 0 x '0A'
    jump 1
    BADFILE et_ncbi_log_dir: 'interactions.bad'
    Et_ncbi_log_dir LOG file: 'interactions.log'
    fields terminated by '\t '.
    missing field values are null
    REJECT ROWS WITH ALL FIELDS ARE NULL
    (
    TAX_ID,

    pubmed_id_list,
    interaction_id_type
    )
    )
    LOCATION (ET_NCBI_DIR: "interactions")
    )
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    NOMONITORING;

    Thanks for the reply.

    Should I use

    collumn_name tank (2000) in the table creation script because it is larger than the default char (255)

  • How can I add points mark before and after every comma in TextEdit?

    Hello world

    I have a fairly big translation file CSV that I need to change and I'm wondering how to do this without having to do it manually.

    I want to add points mark before and after every comma of the document.

    Currently, my text looks like this:

    Account information, information of the affiliate account, affiliate

    Credit, Credit affiliate, affiliate

    Membership discount, discount affiliate,

    Email, e-mail address of the affiliate membership,

    Home membership, Affiliation home,

    Link, affiliate link, affiliate

    Affiliate Login, login affiliate,

    Name, name of the affiliate, affiliate

    Affiliate, affiliate,

    And I need it to be like this:

    "Total account", "Account balance",

    "Reach account balance', ' the account balance - door."

    "Account setup", "Account setup",

    "E-mail account", "E-mail account",

    "Account Information", "Account information",

    'Account Manager', 'Account manager',

    'New account', 'New account',

    'Account settings', 'Account settings',

    Tips that would help me to do it is more than welcomed.

    Thank you!

    I suggest the 'best' way to do may not be via AppleScript itself.

    AppleScript can do, but his text, the analysis is heavy, while the shell commands handle this with ease (although they are not as easy to read).

    That said, here is an example of AppleScript - the converted text will be written to the file "output.csv" on your desktop.

    game dittos to (Choose file)

    the value of output of {}

    the value question in paragraphs of (read (dittos) as text)

    Repeat with eachPara in question

    the value my entry point text delimiters to ",".

    the value $thisline for text elements of eachPara

    the value my text item delimiters to quote & "," & quote

    copy (quote & ($thisline as text) & quote) to end of output

    the value my point text delimiters to ASCII character 10

    set this to output as text

    end Repeat

    game of outputFile to (open access file ((path to the Office as text) & 'output.csv' in the text) with write permission)

    outputFile folklore of the value to 0

    write this as text to outputFile

    outputFile close access

    As you can see, it is heavy, especially compared to a few lines of shell script, but it should you get.

  • Can load us a file that contains the joint field delimiter

    Hi guru,.

    Can load us a file that mixed the field delimiter

    EX: -.

    My first 10 lines have as field separator «,»

    from 11 to 20 lines have as field separator «;»

    from 21 to 30 lines have field as separator ' | '.


    123456789
    ABC, def, xyz
    a1d2 | b1cw | xedr23

    Hello

    If you have a special field that allows to identify the differences between these lines, you can use it to create 3 ODI data warehouses.
    Each data store refers to the SAME resource (ie: same file), but you use the option called "REGISTRATION CODE" to differentiate.

    ex: I will add a field 4th on your land, which I will call "block".

    123456789; Block1
    ABC, def, xyz; bloc2
    a1d2 | b1cw | xedr23; bloc3

    I create 3 warehouses of data based on this file.

    First data store: I define ',' as the delimiter
    Second data store: I define ';' as delimiter
    Third-party data store: I define ' | ' as delimiter

    In the properties of the column of the first store of data block, I put 'Block1' value in the 'registration code '.
    In the properties of the column for the second data store block, I put the "bloc2" value in the "registration code".
    In the properties of the column of the third-party data store block, I put the "bloc3" value in the "registration code".

    I think it should work.

  • Can I add merge field to contact the subject line?

    I am trying to find a way to add a merge field to contact the subject line

    Open the merge field dialog box, and then drag the fusion in the subject line. Once it is there, you can't move it really, but you can change the text around it. Another option is to paste the code in your subject line. Then save and exit the email. When you open new, you will see the familiar yellow fusion indicator.

  • Hi - I've never asked a question here - forgive me if I am doing it wrong.  I am trying to add a digital signature field in Acrobat DC, so it can be signed to the reader by someone other than me. (A digital not the type that will attract the DC for you or

    Hi - I've never asked a question here - forgive me if I am doing it wrong. I am trying to add a digital signature field in Acrobat DC, so it can be signed to the reader by someone other than me. (A digital step type that DC will draw to you or allow you to draw yourself.) I can do the fields but they do not work. The signature fields used to have little flags in the corner of the box that indicates that they were ready to be signed. My steps consist of:

    Select Tools - prepare forms. I click on the "this document requires signature. Automatic detection is on.

    Next, I check the automatically created fields. I tried to just change the properties of the signature signature box and I also tried drawing signature block or a right signature (not sure what the difference is) , I noticed that under "More" there «return it to the form acrobat.» When I do I get the message that "Acrobat will now NEA Acroform - click ok to continue"-I made and save - can I save again with the new name of 'Save as another' to activate the form. So I check the form in Reader, but it does not work! What I am doing wrong? I used to be able to do that!  I tried other ways, but DC wants me to a digital signature for me (I already have one!) Help please!

    In Acrobat, you can add a signature field to the form:

  • Add points at the end of the path

    Just learn how to use paths... one question eludes me. If I'm working on a path, adding a number of points, then do something else (e.g. Select another tool)... How can I return to this path and add points after the final point? I know that I can use the "Add an anchor point" tool to add points in the middle of the existing path, but how can I extend the path beyond the last point? !!

    If you Ctrl + click with the pen (to change Direct Selection tool temporarily) stop the path, it will be disabled, and the cursor turns into a pen with a star.

    Move the cursor to the end, and it will change the cursor "connect". Click on it will change the cursor to 'Awaken', and you will see 'Pick-up Path' appear in the history panel. You can now add your points.

  • Add an Extension field to save the last Action of the agent and display this on email

    I am trying to add an extension field to a call to save the last Action Officer tapped on a call.  I do what we want to display (on e-mail alerts, for example) the last 'real' action taken a call, and we don't want to display the text of the generated system which is often recorded in the SOLUTION_DESC column.
    for example, e-mail sent displays like this:
    snip2.png
    I created the extension field and have obtained this update when the call is handled (details of the changes I made are below).


    The problem I have is that the email that is sent to the receiving a transferred call is the latest version of the data from the field to this topic.  It's as if the system did not write data in the database until the logic 'send e-mail' runs.  If I have question registration in SQL immediately after the postponement or the transfer of the call I can see the update is written to the field of the extension of the database, but there after send it an email.

    for example, I change a call and type something in the field of Actions and Solutions.  I transfer the call to a group.  The email that is sent to the groups has the extension defined field to display on this, but it does not display the last typed Action in, it displays the previous Action (there's a).

    Any suggestions on how to make sure that e-mail displays the last Action?

    The changes I've done so far:
    In Custom_InCallDetails.js
    Added the custom function:
    function setLastUserActionText() {}
    var da = document.all;
    var sd = da. SOLUTION_DESC_HTML_EDITOR. Area;
    If ((da. TEMPLATE_IND. Value! = 1) & & (sd! = ") & &! (TF (da. TakeOver.value)))
    {
    var DB = FindNavWindow (). document.all.DB;
    var localRS;
    var OfficerName;
    var CurrentDate = new Date();
    DB. ClearParam();
    DB. AddParam ("REF", da.) OFFICER_REF.value);
    localRS = DB. GetRecordSet ("Get agent Name");
    If (localRS == null | localRS.recordCount == 0)
    OfficerName = '(unknown) ';
    on the other
    OfficerName = (localRS("FULL_NAME").value);
    DB. ClearParam();
    DB. AddParam ("CALL_NUMBER", da.) CALL_NUMBER.value);
    DB. AddParam ("SOLUTION_DESC", (sd + "\r\n (in" + OfficerName + "on" + CurrentDate.toLocaleString () + "" ")" ""));
    localRS = DB. GetRecordSet ("CustomGetLastUserActionText");
    If (localRS == null | localRS.recordCount == 0)
    {
    localRS = DB. GetRecordSet ("CustomAddLastUserActionText");
    localRS = DB. GetRecordSet ("CustomUpdateExtensionDataAllocation");
    }
    on the other
    localRS = DB. GetRecordSet ("CustomSetLastUserActionText");
    }
    }

    Update OnSubmit function call:
    function OnSubmit (s)
    {

    p.Submitted = false;
    Returns false;
    }
    Start personalization
    setLastUserActionText();
    Customization of the end

    SetSubmitValues();

    }

    In infra_custom.sql
    ! CustomUpdateExtensionDataAllocation
    CustomUpdateExtensionDataAllocation
    UPDATE SU_NUMBER_ALLOC SET NUMBER_ALLOC = (SELECT MAX (REF) + 1 SU_EXTENSION_DATA) WHERE TABLE_ALLOC = 'SU_EXTENSION_DATA. '

    ! CustomGetLastUserActionText
    ! 500219 is the Ref of the field "last user action text.
    CustomGetLastUserActionText
    SELECT REF FROM SU_EXTENSION_DATA WHERE REF_NO =: nCALL_NUMBER AND EXTENSION_FIELD_REF = 500219

    ! CustomAddLastUserActionText
    CustomAddLastUserActionText
    INSERT INTO SU_EXTENSION_DATA
    (REF,
    REF_NO,
    EXTENSION_FIELD_REF,
    VALUE_STRING,
    CORE_ENTITY)
    SELECT
    (SELECT MAX (REF) + 1 OF SU_EXTENSION_DATA) + ROW_NUMBER () OVER (ORDER BY: nCALL_NUMBER).
    : nCALL_NUMBER,.
    500219,
    : sSOLUTION_DESC,.
    1

    ! CustomSetLastUserActionText
    CustomSetLastUserActionText
    UPDATE SU_EXTENSION_DATA SET = VALUE_STRING: sSOLUTION_DESC WHERE REF_NO =: nCALL_NUMBER AND EXTENSION_FIELD_REF = 500219

    Why not add the extension field in the call screen. Then update the field on the screen in onsubmit. In this way, it will update the value and be available to the e-mail address.

  • I can cause a ticking a box to add 1 to a calculated field?  I have a field that summarizes the numbers entered in several previous fields and must be able to add '1' If a checkbox is enabled as well.

    I can cause a ticking a box to add 1 to a calculated field?  I have a field that summarizes the numbers entered in several previous fields and must be able to add '1' If a checkbox is enabled as well.

    My first sample: If all the checked Checkbox event.value wins 1

    My next sample: If one of the boxes is enabled event.value wins 1

    Event.Value =

    this.getField ("Check Box16") .isBoxChecked (0) |

    this.getField ("Check Box17") .isBoxChecked (0) |

    this.getField ("Check Box18") .isBoxChecked (0) |

    this.getField ("Check Box19") .isBoxChecked (0) |

    this.getField ("Check Box20") .isBoxChecked (0)

Maybe you are looking for

  • Continuous family security matters

    Hello A few moments ago, I had a problem with the parental control, which was being developed in the following discussion: -. http://answers.Microsoft.com/en-us/Windows/Forum/windows_other-security/family-safety-sign-in-hangs/99400114-4132-4bd5-9cdb-

  • How to write a letter

    you are looking for a tool in offline mode, I can use to write a letter and print it

  • VOIP through ipsec

    Hi all I have configured an IPSEC tunnel from site to site (site1) ASA5510 and sonicwall (site 2). The ipsec tunnel is established and I can ping both subnets Each. I use ASA5510 as the VoIP gateway. That is to say, I gave the ip address of the voip

  • No WIRED internet connectivity!

    My laptop (lenovo G560, Win7OS) will have no wired... receiving the message "connection to the local network was not a valid ip address" Wireless is operation, but slow because of the poor quality GIS. How can I restore my Wired connectivity?

  • What is EAS?

    Hey all, I'm new to all of this, but my client is looking at a Palm Pre and I noticed it has an EAS problem with it: http://www.precentral.NET/Palm-knows-EAS-support-lacking-fix-due-within-60-days EAS is an acronym for what?