Combination of several lines into one

Hello

I have a table like this

ID | name
1 aWord
1 Anotherword
2 Gisela


I would like a result of the query, where two rows (or a lot as it is in the table, with this id) to put in a string separated by commas, like this "aWord, Anotherword" ID = 1. Preferably, I would like to avoid using cursors...

Any help on this is appreciated.

Thank you

/David N

Like this...

SQL> ed
Wrote file afiedt.buf

  1  select deptno, ltrim(sys_connect_by_path(ename,','),',') as enames
  2  from (
  3        select deptno, ename, row_number() over (partition by deptno order by ename) rn from emp
  4       )
  5  where connect_by_isleaf = 1
  6  connect by deptno = prior deptno
  7         and rn = prior rn + 1
  8  start with rn = 1
  9* order by deptno
SQL> /

    DEPTNO ENAMES
---------- --------------------------------------------------
        10 CLARK,KING,MILLER
        20 ADAMS,FORD,JONES,SCOTT,SMITH
        30 ALLEN,BLAKE,JAMES,MARTIN,TURNER,WARD

Or to ensure names are distinct...

SQL> ed
Wrote file afiedt.buf

  1  select deptno, ltrim(sys_connect_by_path(ename,','),',') as enames
  2  from (
  3        select distinct deptno, ename, dense_rank() over (partition by deptno order by ename) rn
  4        from emp
  5       )
  6  where connect_by_isleaf = 1
  7  connect by deptno = prior deptno
  8         and rn = prior rn + 1
  9  start with rn = 1
 10* order by deptno
SQL> /

    DEPTNO ENAMES
---------- --------------------------------------------------
        10 CLARK,KING,MILLER
        20 ADAMS,FORD,JONES,SCOTT,SMITH
        30 ALLEN,BLAKE,JAMES,MARTIN,TURNER,WARD

SQL>

Tags: Database

Similar Questions

  • Representing data of several lines into one line

    Hi all

    Please check the query below:
    select manager_id mg_id, employee_id emp_id, last_name name from employees 
    where manager_id = '100'
    and DEPARTMENT_ID = '80'
    If I run the following query, o/p then comes wise line; as below:
           mg_id           emp_id            name
           100             145                     Russell
           100             146                     Partners
           100             147                     Errazuriz
           100             148                     Cambrault
           100             149                     Zlotkey
    But if I want the o/p as below; That is to say; under Manager # 100, all employees emp_id and name should come in ONE row NOT in several lines:
    mg_id                   emp_id     name          emp_id       name       emp_id     name         emp_id     name                emp_id         name
    100                             145             Russell     146       Partners        147     Errazuriz       148              Cambrault        149        Zlotkey
    pls help me sort the above desired o/p.

    kindly tell me if there are guidelines of accounting (except 'Plain Text help' on the right side) in this forum. I tried a lot of post above 2 o/p in easy to read format, but could not do so.

    Published by: Francis Sep 20, 2009 04:28

    Published by: Francis Sep 20, 2009 04:29
  • grouping of several lines into one line

    Totally, I need help with this easy... Basically, I have several lines for a unique userid that I need to be grouped into a single line.

    Here's what I have before:

    USER ID MONTH1_SEVERITY MONTH2_SEVERITY MONTH3_SEVERITY

    MODERATE 1900055
    1900055 <... it'sa just space... > MODERATE
    1900055 <... it'sa just space... > MODERATE


    What I wish to see:
    USER_ID MONTH1_SEVERITY MONTH2_SEVERITY MONTH3_SEVERITY

    MODERATE MODERATE MODERATE 1900055


    Thanks in advance.

    Rotate the data

    Select user_id,
    Max (month_1_severity),
    Max (month_2_severity),
    Max (month_3_severity)
    from table_name
    Group of user_id

  • Report to concatenate several lines into one line

    I have three tables:
    1 project Pk = proj_id
    2 Resources_on_Project Pk = Resources_on_proj_id Foreign_key = proj_id
    3 cost Pk = cost_id Foreign_key = proj_id

    columns in the table:

    Project: proj_id, proj_name, proj_description
    Resources_on_Project: Resources_on_proj_id, proj_id, id_ressource
    cost: cost_id, proj_id, cost_type, cost_incurred

    the table relationships:

    Project: Resources_on_project 1:m (project has several resources in Appendix)
    Cost of the project: 1:m (project has many costs in annex)

    Data:

    Project:
    PROJ_ID, proj_name, proj_description
    1, CDM, Advisory Services

    2, efficient lighting, efficient ESCO

    Resources_on_project
    Resources_on_proj_id, proj_id, id_ressource
    1, 1, 1
    2, 1, 2
    3, 2, 3
    4, 2, 4

    Cost:
    cost_id proj_id cost_type cost_incurred
    1.1, food, 1200
    2.1, travel, 2000
    3.1, trip, 3500
    4.1 food, 1200
    5.1, trip, 1400
    6.1, travel, 1200
    7,2 trip, 2000
    8.2 food, 1200
    9.2, trip, 1300
    10.2, food, 2000
    11.2, travel, 800
    12.2, travel, 1150
    13.2, food, 3000
    14.2, food, 1000
    15.2, food, 2400


    First project has 2 resources attached to it and 6 different costs.
    Second project includes 2 resources and 9 heads of different costs.

    I want a report that gives me:

    Proj_name, Proj_description, id_ressource, cost_incurred
    Advisory services CDM 10500 1/2

    ESCO effective effective lighting 14850 3/4


    I wrote a query:
    «Select «PROJECT»» PROJ_NAME' as 'PROJ_NAME. "
    ««PROJECT»» PROJ_DESCRIPTION' as 'PROJ_DESCRIPTION. "
    sum (COST. COST_INCURRED) as "COST_INCURRED."
    'RESOURCES_ON_PROJECTS '. "" RESOURCE_ID ' as 'RESOURCE_ID.
    'COST', 'cost ',.
    "RESOURCES_ON_PROJECTS" "RESOURCES_ON_PROJECTS"
    'PROJECT' 'PROJECT '.
    where "PROJECT. "" PROJ_ID "=" RESOURCES_ON_PROJECTS. " "" PROJ_ID.
    and 'PROJECT '. "" "PROJ_ID '=' COST. PROJ_ID.
    PROJECT group. PROJ_NAME, PROJECT. PROJ_DESCRIPTION, RESOURCES_ON_PROJECTS. ACCOUNTABLE_RESOURCE_ID

    the result is:

    Advisory services CDM 1 10500
    Advisory services CDM 2 10500
    ESCO effective effective lighting 3 14850
    ESCO effective effective lighting 4 14850

    It gives a new line for each different resource.


    I want to:
    Advisory services CDM 10500 1/2
    ESCO effective effective lighting 14850 3/4

    any help will be appreciated.

    Published by: Rahul Gupta on September 7, 2009 16:07

    Rahul Gupta says:
    Shadow of Blu,

    It's exactly what I wanted. But the measures specified by you are not clear for me.

    can you let me know how I can implement?

    Okay... Let's take the internal selection...

    SQL> select proj_name
      2        ,proj_desc
      3        ,resource_id
      4        ,cost
      5        ,row_number() over (partition by proj_name order by resource_id) as rn
      6  from output
      7  /
    
    PROJ_NAME PROJ_DESC               RESOURCE_ID       COST         RN
    --------- ----------------------- ----------- ---------- ----------
    CDM       Advisory Services                 1      10500          1
    CDM       Advisory Services                 2      10500          2
    Efficient ESCO Efficient lighting           3      14850          1
    Efficient ESCO Efficient lighting           4      14850          2
    
    SQL>
    

    This affects a line number for each line, each group proj_name (partition). Line numbers are allocated in the order of the id_ressource.

    Now, using a (hierarchical) query connection we create a hierarchy of folders as well as RN = 2 is considered to be a child of RN = 1, etc..

    SQL> ed
    Wrote file afiedt.buf
    
      1  select level
      2        ,lpad(' ',(level-1)*2,' ')||x.proj_name as proj_name -- indent for hierarchical illustration only
      3        ,x.proj_desc
      4        ,x.resource_id
      5        ,x.cost
      6        ,x.rn
      7  from (
      8        select proj_name
      9              ,proj_desc
     10              ,resource_id
     11              ,cost
     12              ,row_number() over (partition by proj_name order by resource_id) as rn
     13        from output
     14       ) x
     15  connect by proj_name = prior proj_name and rn = prior rn + 1
     16* start with rn = 1
    SQL> /
    
         LEVEL PROJ_NAME       PROJ_DESC               RESOURCE_ID       COST         RN
    ---------- --------------- ----------------------- ----------- ---------- ----------
             1 CDM             Advisory Services                 1      10500          1
             2   CDM           Advisory Services                 2      10500          2
             1 Efficient       ESCO Efficient lighting           3      14850          1
             2   Efficient     ESCO Efficient lighting           4      14850          2
    
    SQL>
    

    Now, using the sys_connect_by_path function we can get it to collect the data, because it passes through to the bottom of the hierarchy...

    SQL> ed
    Wrote file afiedt.buf
    
      1  select level
      2        ,lpad(' ',(level-1)*2,' ')||x.proj_name as proj_name
      3        ,x.proj_desc
      4        ,x.resource_id
      5        ,sys_connect_by_path(resource_id,'/') as resources
      6        ,x.cost
      7        ,x.rn
      8  from (
      9        select proj_name
     10              ,proj_desc
     11              ,resource_id
     12              ,cost
     13              ,row_number() over (partition by proj_name order by resource_id) as rn
     14        from output
     15       ) x
     16  connect by proj_name = prior proj_name and rn = prior rn + 1
     17* start with rn = 1
    SQL> /
    
         LEVEL PROJ_NAME       PROJ_DESC               RESOURCE_ID RESOURCES        COST         RN
    ---------- --------------- ----------------------- ----------- ---------- ---------- ----------
             1 CDM             Advisory Services                 1 /1              10500          1
             2   CDM           Advisory Services                 2 /1/2            10500          2
             1 Efficient       ESCO Efficient lighting           3 /3              14850          1
             2   Efficient     ESCO Efficient lighting           4 /3/4            14850          2
    
    SQL>
    

    Now, we can store up to the sys_connect_by_path to eliminate the left "/" simply by using the TRIM function.
    We also need to do however is to choose only the lines that have reached the bottom of the hierarchy (the nodes). We have a pseudo-device column we can refer to called CONNECT_BY_ISLEAF...

    SQL> ed
    Wrote file afiedt.buf
    
      1  select level
      2        ,lpad(' ',(level-1)*2,' ')||x.proj_name as proj_name
      3        ,x.proj_desc
      4        ,x.resource_id
      5        ,ltrim(sys_connect_by_path(resource_id,'/'),'/') as resources
      6        ,x.cost
      7        ,x.rn
      8        ,connect_by_isleaf
      9  from (
     10        select proj_name
     11              ,proj_desc
     12              ,resource_id
     13              ,cost
     14              ,row_number() over (partition by proj_name order by resource_id) as rn
     15        from output
     16       ) x
     17  connect by proj_name = prior proj_name and rn = prior rn + 1
     18* start with rn = 1
    SQL> /
    
         LEVEL PROJ_NAME       PROJ_DESC               RESOURCE_ID RESOURCES        COST         RN CONNECT_BY_ISLEAF
    ---------- --------------- ----------------------- ----------- ---------- ---------- ---------- -----------------
             1 CDM             Advisory Services                 1 1               10500          1             0
             2   CDM           Advisory Services                 2 1/2             10500          2             1
             1 Efficient       ESCO Efficient lighting           3 3               14850          1             0
             2   Efficient     ESCO Efficient lighting           4 3/4             14850          2             1
    
    SQL>
    

    So now we can filter only the lines where CONNECT_BY_ISLEAF = 1, also remove the output columns and calculates values etc, we don't need to see.

    SQL> ed
    Wrote file afiedt.buf
    
      1  select x.proj_name
      2        ,x.proj_desc
      3        ,ltrim(sys_connect_by_path(resource_id,'/'),'/') as resources
      4        ,x.cost
      5  from (
      6        select proj_name
      7              ,proj_desc
      8              ,resource_id
      9              ,cost
     10              ,row_number() over (partition by proj_name order by resource_id) as rn
     11        from output
     12       ) x
     13  where connect_by_isleaf = 1
     14  connect by proj_name = prior proj_name and rn = prior rn + 1
     15* start with rn = 1
    SQL> /
    
    PROJ_NAME       PROJ_DESC               RESOURCES        COST
    --------------- ----------------------- ---------- ----------
    CDM             Advisory Services       1/2             10500
    Efficient       ESCO Efficient lighting 3/4             14850
    
  • How to display/concatenate several lines into one line

    I have a report that retrieves a project name and its corresponding attached resources.
    If tha project has 4 resources attached will appear 4 different columns.
    is there a way to display a single line with the corresponding resources names concatenated into a single cell?

    There is a related issue of PL/SQL and is not a matter of apex. However, see this as an example:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:84

    There are also a bunch of other code related to this issue.

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Concatenate the strings of several lines into one line.

    Hello

    What is the name of this analytical function (or log in) which
    would return more line as a concatenated line strings. that is to say:
    (I know that it is possible using the regular functions of pipeline).
    ROW1:   STR1
    ROW2:   STR2
    ROW3:   STR3
    
    select tadah().... from ...
    
    result:
    
    ROW1: STR1 STR2 STR3
    Thank you.

    Hello

    DanielD wrote:
    Hello

    What is the name of this analytical function (or log in) which
    would return more line as a concatenated line strings. that is to say:
    (I know that it is possible using the regular functions of pipeline).

    ROW1:   STR1
    ROW2:   STR2
    ROW3:   STR3
    
    select tadah().... from ...
    
    result:
    
    ROW1: STR1 STR2 STR3
    

    The function is SYS_CONNECT_BY_PATH

  • Combining the NACHA several files into one

    Gurus, we will implement the new file format NACHA for our payroll service. Payroll running a DOS command to concatenate several files into one .mf. Is there a way to Oracle to achieve the same?

    Database server
    ----------------------------------------
    RDBMS: 11.2.0.3.0
    Oracle Applications: 11.5.10.2


    Thanks, Naveen Gagadam.

    Published by: mascot of Oracle on May 30, 2013 10:26

    Vignesh Hi, I just went through our Installer and there are Consolidation defined for each payroll that we use. I think it is better the purpose of having a consolidation set. Could you tell me how to consolidate several salary mass as a whole or alternatively can add several wage masses on the fly (as parameters) for each race NACHA?

    Thanks, Naveen.

  • Combine the two projects into one

    I know it is a very popular question and I read many answers excellent previous answers.  The two most popular procedures seem to be simple copy - paste and use clips of compounds with copy / paste.  CPF has improved this process over the years and I ask the question again to get the benefit of current thinking.   I have an iMac (mid-2011) OS X 10.11.4 and FCP worm 10.2.2.  I have two separate events within the same library.  There is a completed project, with all the transitions, effects and music, located within each discipline.    Current ideas on how to combine these two projects into one would be greatly appreciated.

    Thank you.

    Copy and paste is the only method I know.

    Open the project in the timeline first.

    Open the second project in the timeline panel. Only one project appears at the same time.

    Select an item in the timeline and press command + A to select all, then control + C to copy.

    Use the project navigation arrows to return the first project:

    Move the playhead to where copied clips must be glued and press command + V.

    Al

  • Y at - it a safe application for concatenating several files into one .rtf?

    Y at - it a safe application for concatenating several files into one .rtf?

    Why do you do this?

    Is it arril (3D image files) or .rtf (Rich Text Format) files?

  • I currently have a creative cloud with an e-mail account, however I have a behance with an e-mail account that I have had for many years (even Adobe and Behance made before part of the same group). Can I combine these two accounts into one?

    I currently have a creative cloud with an e-mail account, however I have a behance with an e-mail account that I have had for many years (even Adobe and Behance made before part of the same group). Can I combine these two accounts into one? I want to use the account that I pay cloud Creative if I can use the new portfolio feature.

    Thank you.

    This is an open forum, not Adobe support... below to connect with Adobe personnel to help

    While the forums are open 24/7 you can't contact Adobe support at any time

    Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • How to scan several documents into one PDF

    How to scan several documents into single PDF - have no ADF

    Thanks - great app

  • Combine multiple lines into one line (from two tables / result sets)

    Hello experts,

    I would like to know how to combine multiple lines/records in a single record. Here are the DDL and DML to tables:

    create table test_table)

    client_name varchar2 (50 char),

    login_time timestamp (6).

    logout_time timestamp (6).

    auto_type varchar2 (10 char)

    )

    create table root_table)

    navigation_time timestamp (6).

    client_name varchar2 (50 char),

    VARCHAR2 (50 char) nom_du_groupe

    )

    Insert into test_table

    values ("John", TO_TIMESTAMP ('2013-12-05 17:04:01.512 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), TO_TIMESTAMP ('2013-12-05 17:27:31.308 ',' YYYY-MM-DD HH24:MI:SS.) FF'), 'SIMPLE');

    Insert into test_table

    values ('David', TO_TIMESTAMP ('2013-12-05 06:33:01.308 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), TO_TIMESTAMP ('2013-12-05 06:45:01.112 ',' YYYY-MM-DD HH24:MI:SS.) FF'), 'SIMPLE');

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 17:04:01.512 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'John', "invalid");

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 17:14:22.333 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'John', "GROUP_1");

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 17:27:31.308 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'John', "GROUP_1");

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 06:33:01.308 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), "David", "invalid");

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 06:45:01.112 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'David', 'GROUP_5');

    game results test_table

    client_name

    login_time logout_time auto_typeJohn05/12/2013 5:04:01.512000 PM05/12/2013 5:27:31.308000 PMSIMPLEDavid05/12/2013 6:33:01.308000 AM05/12/2013 6:45:01.112000 AMSIMPLE

    root_table result set

    navigation_time client_name GroupName
    05/12/2013 5:04:01.512000 PMJohnNot valid
    05/12/2013 5:14:22.333000 PMJohnGROUP_1
    05/12/2013 5:27:31.308000 PMJohnGROUP_1
    05/12/2013 6:33:01.308000 AMDavidNot valid
    05/12/2013 6:45:01.112000 AMDavidGROUP_5

    And here is the SQL code I'm writing:

    Select a.customer_name, a.login_time, a.logout_time, a.auto_type, Max (b.group_name)

    from test_table a, b root_table

    where a.customer_name = b.customer_name

    Group of a.customer_name, a.login_time, a.logout_time, a.auto_type

    As the 'invalid' value is greater than the value "GROUP_1" (based on the number of letter in English), the GroupName is returned as 'invalid '. I want to bring the GroupName based on the navigation_time column in the root_table so that it always returns a valid GroupName. Please help me.

    Output current:

    Client_name.      Login_Time.     Logout_Time |     Auto_Type |     GroupName

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

    John |     05/12/2013 5:04:01.512000 PM |     05/12/2013 5:27:31.308000 PM |     SIMPLE |     Not valid

    David |     05/12/2013 6:33:01.308000 AM |     05/12/2013 6:45:01.112000 AM |     SIMPLE |     Not valid

    Expected results:

    Client_name.      Login_Time.     Logout_Time |     Auto_Type |     GroupName

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

    John |     05/12/2013 5:04:01.512000 PM |     05/12/2013 5:27:31.308000 PM |     SIMPLE |     GROUP_1

    David |     05/12/2013 6:33:01.308000 AM |     05/12/2013 6:45:01.112000 AM |     SIMPLE |     GROUP_5

    Thank you!

    Adding INSERT statements, current and planned outputs.

    This...

    SELECT client_name

    login_time,

    logout_time,

    auto_type,

    GroupName

    Of

    (select a.customer_name,

    a.login_time,

    a.logout_time,

    a.auto_type,

    b.group_name,

    ROW_NUMBER() over (PARTITION BY a.customer_name, a.login_time, a.logout_time, a.auto_type ORDER BY b.group_name) rn

    from test_table a, b root_table

    where a.customer_name = b.customer_name)

    WHERE rn = 1;

    OUTPUT:-

    =========

    David DECEMBER 5, 13 06.33.01.308000000 AM DECEMBER 5, 13 06.45.01.112000000 AM SIMPLE GROUP_5
    John DECEMBER 5, 13 05.04.01.512000000 PM DECEMBER 5, 13 05.27.31.308000000 PM SIMPLE GROUP_1

    Thank you

    Ann

  • The combination of several lines to line of monkey through SQL Stmt

    Hello

    I try to combine the values returned by several rows in a row,
    through indoor/outdoor sql or any optimally.
    In the example, I would like to have name, surname, email and phone to be
    returned in a single line.
    create table TEMP_AAAAA
    (
      FIRST_NAME VARCHAR2(25),
      LAST_NAME  VARCHAR2(25),
      CON_METHOD VARCHAR2(25),
      CON_VALUE  VARCHAR2(25)
    
    )
    
    INSERT INTO TEMP_AAAAA VALUES('TOM','MAC','EMAIL','[email protected]');
    INSERT INTO TEMP_AAAAA VALUES('TOM','MAC','PHONE','12345');
    Any suggestion to do this through sql stmt.
    I did it through pl/sql, I wondered if it could be realized only thru SQL Stmt
    DECLARE
    v_FIRST_NAME  VARCHAR2(25);
    v_SECOND_NAME VARCHAR2(25);
    v_EMAIL       VARCHAR2(25);
    v_PHONE       VARCHAR2(25);
    BEGIN
    v_FIRST_NAME := NULL;
    v_SECOND_NAME := NULL;
    v_EMAIL := NULL;
    v_PHONE := NULL;
    
    FOR IMPL_CUR IN(SELECT * FROM TEMP_AAAAA ORDER BY CON_METHOD DESC)
    LOOP
    
            IF v_FIRST_NAME IS NULL
            THEN
               v_FIRST_NAME := IMPL_CUR.FIRST_NAME;
            END IF;
            IF v_SECOND_NAME IS NULL
            THEN
               v_SECOND_NAME := IMPL_CUR.LAST_NAME;
            END IF;   
            IF v_PHONE IS NULL AND IMPL_CUR.CON_METHOD = 'PHONE'
            THEN
               v_PHONE := IMPL_CUR.CON_VALUE;
            END IF;
           
            IF v_FIRST_NAME = IMPL_CUR.FIRST_NAME AND 
               v_SECOND_NAME = IMPL_CUR.LAST_NAME AND 
               length(v_PHONE) > 0 
            THEN
              IF v_EMAIL IS NULL AND IMPL_CUR.CON_METHOD = 'EMAIL'
              THEN
                 v_EMAIL := IMPL_CUR.CON_VALUE;
                 EXIT;
              END IF;        
            END IF;
            
            
            
    END LOOP;
    
                       
             DBMS_OUTPUT.put_line('firstName...:' || v_FIRST_NAME);     
             DBMS_OUTPUT.put_line('lastName....:' || v_SECOND_NAME);     
             DBMS_OUTPUT.put_line('PHONE.......:' || v_PHONE);
             DBMS_OUTPUT.put_line('EMAIL.......:' || v_EMAIL); 
    
    END;

    SELECT FIRST_NAME, LAST_NAME,
    MAX (SUBSTR (SYS_CONNECT_BY_PATH (CON_VALUE,' '), 2)) EMP_LIST
    (SELECT FIRST_NAME, LAST_NAME, CON_VALUE,
    ROW_NUMBER() OVER (PARTITION FIRST_NAME, LAST_NAME ORDER BY CON_METHOD) RN
    OF TEMP_AAAAA)
    CONNECT BY PRIOR (FIRST_NAME |) LAST_NAME. =(FIRST_NAME||) RN) LAST_NAME. (RN-1))
    START BY RN = 1
    GROUP FIRST_NAME, LAST_NAME;

    FIRST_NAME LAST_NAME EMP_LIST
    ------------------------- ------------------------- ------------------------------------------------
    TOM MAC [email protected] 12345

  • Fusion of the 2 lines into one

    Greedings,

    I have the following output
            
    1       A       null     null
    
    2      null      B         C
    How is it possible to merge in one line?
    CREATE TABLE test_g 
    (
    a VARCHAR2(1),
    b VARCHAR2(1),
    c VARCHAR2(1)
    )
    INSERT INTO test_g 
    VALUES (null,'B','C');
    
    INSERT INTO test_g 
    VALUES ('A',null,null);

    You could do this:

    SELECT MAX(a),
           MAX(b),
           MAX(c)
    FROM   test_g
    
  • How to combine two different accounts into one?

    We have an account at work that has a subscription of cloud on that and I also have a separate for work as I can access only. How am I supposed to combine the two is multi-user account? My account has expired so I need re-new anyway with the other one.

    Help, please!

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

    For a computer to work, you may need a TEAM account

    - https://creative.adobe.com/plans?plan=team team plans

    -http://www.adobe.com/creativecloud/buy/business.html

    -https://helpx.adobe.com/contact/creative-cloud-teams.html using the team

    -manage your account http://forums.adobe.com/thread/1460939?tstart=0 team

Maybe you are looking for