Join the two lines into one game

Hi all

I have a table with 1 column and records are as below. Below I show only the first 4 records to give an idea.

Select cn from CSGL_AD_GROUP_OP_COMP_MEM_TEMP where rownum < 5;

CN
-------------------------------------------------------------------------------
CN = JZJXEEW00072305, OU = computers to office, OR = Secured_Systems, OR = Computers, OR = ZJX_ARTCC, OR
= FL, OR = ESA, OU = ATO, OU = LOB, DC = faa, DC = gov
CN = JI90NTW00069990, OU = computers to office, OR = Secured_Systems, OR = Computers, OR = I90_TRACO, OR
= TX, OR = CSA, OU = ATO, OU = LOB, DC = faa, DC = gov

Now, the requirement is to concatenate the 1st and 2nd rank, concat 3rd and 4th rank, conact 5th and 6th next row and so on and put it in a new column in the same table if its possible, if not in a new table.

How can I do this, can someone help me.

Thank you

Hello

There are numerous valid aproaches, may be the last of them is more effective than the other in some cases:

select
 c1.key
,C1.cn||C2.cn cn
from
CSGL_AD_GROUP_OP_COMP_MEM2 C1,
CSGL_AD_GROUP_OP_COMP_MEM2 C2
where
C1.key+1=C2.key
and
mod(c1.key,2)=1

select key, cn from (
SELECT
 cn || LEAD (cn) OVER (ORDER BY key) cn
,key
FROM    CSGL_AD_GROUP_OP_COMP_MEM2
)
where
mod(key,2)=1

select key, cn from (
select *
from
CSGL_AD_GROUP_OP_COMP_MEM2 C1
model
dimension by (key)
measures (cn)
rules(
cn[any] order by key=cn[cv()]||cn[cv()+1]
)
)
where
mod(key,2)=1

concerning

Tags: Database

Similar Questions

  • Is it possible to find the two sentences into one pdf file? For example, I know the words 'Here' and 'the answer' occur more than once in my document, but only once on the same page. I'm looking for this page.

    Is it possible to find the two sentences into one pdf file? For example, I know the words 'Here' and 'the answer' occur more than once in my document, but only once on the same page. I'm looking for this page.

    I tried to do this by using the search but it will find only them, if they occur as a long chain, that is to say "Here's the answer" rather than how they occur in the document it is to say "Here 's" a bunch of information that leads you to 'the answer'. The search feature so standard did not help.

    Then I tried to do this by using the tool to delete (obviously not the application of writing!) because it allows me to search for multiple words or phrases, however it is not highlight what page both are found. I tried to turn on the preference to enable deletions of comments and even if it meant that I could then go through all the comments, it's still not faster than my document is more than 1,000 pages, which meant there were too many total comments for me to be able to easily identify which page had both.

    Any ideas?

    There is no built-in way to search for two strings and limited to show only the results that appear on the same page.

    It can be done by using a custom script, however.

  • 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

  • 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
    
  • Merge two threads in the same person into one iMessage

    I know that this issue has been addressed before. Most importantly, the discussion was on did not understand what the problem is.

    So let me try to explain.

    Tarzan has an iPhone and an iMac, Jane also has an ios device.

    When Tarzan Jane sends an iMessage with his iPhone, Jane receives from "Tarzan" (the iMessage was related to his phone number)

    Now, when Tarzan sends Jane an iMessage of its iMac, Jane receives from "Tarzan", but in a separate thread. (This iMessage was related to his email address)

    Now Jane is in danger and she wants Tarzan to rescue her, she grabs his iPhone, opens the last conversation with Tarzan and Tarzan 'Help texts

    But Tarzan in the jungle and he has only his iPhone with him.

    Jane get killed because the imessage is sent to the iMac of Tarzan and not to his iPhone.

    ====

    The problem is, you get two threads in the same person, are sent to the e-mail address associated with the iMessage, one for the phone number.  But you can't see the difference between the two (except when you dig deep into the background-info).

    If my suggestion of Apple is, they appreciate Jane's life, fix this problem soon: merge those two threads into one.

    PeterSmith wrote:

    I know that this issue has been addressed before. Most importantly, the discussion was on did not understand what the problem is.

    So let me try to explain.

    Tarzan has an iPhone and an iMac, Jane also has an ios device.

    When Tarzan Jane sends an iMessage with his iPhone, Jane receives from "Tarzan" (the iMessage was related to his phone number)

    Now, when Tarzan sends Jane an iMessage of its iMac, Jane receives from "Tarzan", but in a separate thread. (This iMessage was related to his email address)

    Now Jane is in danger and she wants Tarzan to rescue her, she grabs his iPhone, opens the last conversation with Tarzan and Tarzan 'Help texts

    But Tarzan in the jungle and he has only his iPhone with him.

    Jane get killed because the imessage is sent to the iMac of Tarzan and not to his iPhone.

    ====

    The problem is, you get two threads in the same person, are sent to the e-mail address associated with the iMessage, one for the phone number.  But you can't see the difference between the two (except when you dig deep into the background-info).

    If my suggestion of Apple is, they appreciate Jane's life, fix this problem soon: merge those two threads into one.

    IMessage works as it should.

    There is also no apple here to read your thread in this forum for a user to.

    You can send your comments here http://www.apple.com/feedback/

    If Jane was smart it would always send you an imessage using your phone number and not apple id.  Here again, you can add your apple ID to imessage on your phone.

  • How to upgrade one of the two lines in double

    I use 11.2.0.3.0

    Is it possible using a CASE statement to find the rows that are double and one of the two lines was updated so that they are all unique?

    What I get is something like this

    Col1 Col2 COL3 COL4 Col5

    1

    1111
    11111
    22222
    22222
    33333
    33333
    44444
    44444
    55555
    55555

    I would change one of the columns in the two lines that makes the unique lines like this

    Col1 Col2 COL3 COL4 Col5
    11111
    12111
    23222
    24222
    35333
    36333
    47444
    48444
    59555
    50555

    Hello

    I don't see how a CASE expression would contribute to this problem.

    In your original message, you said you wanted to update the table, in other words, to permanently change some of the values stored in the table.

    In response, #2, looks like you want to change what is in the table, you just want to replace by new values for col2 in this query, without permanently changing table.  You can do this by using the ROW_NUMBER right in the query, when you thought using a CASE expression.

  • 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 can I combine the two videos in one video in iTunes?

    I was wondering how can I merge two videos into one on iTunes. I don't know how I can merge. Can you please show me how to merge the videos so I can add the video to my iPod? Thank you

    iTunes can connect two videos. iMovie for iOS on iPod touch may be able to do it for you according to the format. Otherwise, there is a sequel called FreeStudio which probably has a tool for the job.

    TT2

  • How to merge two discs into one?

    I recently updated my OS to Windows XP Edition Home Premium to Windows XP Pro. One way or another I have now two drives (Local 'C' and 'E' Local drive).  When I start the computer it opens to E drive and I continually have a message that I don't have enough disk space on drive E.  How can I megre present two discs into one?  I tried to copy the contents of the C drive in drive E, but I get the message that I don't have enough space on this drive.

    Recommendations or suggestions will be appreciated.  Thank you.

    Ernie...

    Hi Ernie,.

    I suggest you to follow these steps and check if the problem persists.

    a. go to the start menu and open 'control panel '.
    b. Select the option "System and Maintenance" If you use the Control Panel view home and 'Administrative tools' If you use the "classic" view
    d. in the "Administrative Tools" section, select "format and create partitions on the disk.
    e. for users "Classic view", select "Computer management" and select "Storage". Once finished, click on "disk management".
    f. when the list of your reader, choose the one with which you want to merge your disk partitioned with (for example drive E :) and select 'Delete Volume'.)
    g. therefore, select your C: drive and the option "Extend Volume". Your computer will automatically select the empty spaces available on your hard drive and you can change them if you want to do.

    Note: Make sure that you back up the data and then remove drive E.

  • How to combine the two queries into a single

    Hi gurus,

    SQL > select * from v version $;

    BANNER

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

    Oracle Database 10g Release 10.2.0.4.0 - Production 64-bit

    PL/SQL Release 10.2.0.4.0 - Production

    CORE 10.2.0.4.0 Production

    AMT for Linux: release 10.2.0.4.0 - Production

    NLSRTL Version 10.2.0.4.0 - Production

    SQL >

    I have following two queries. How can I convert these two queries into one with the same result?

    1ST QUARTER

    SELECT id, $vdate, SupplierName, venddate, vid

    THE SELLER

    WHERE processid = 32

    AND venddate is null

    AND vid to (select vid from view_vid where type = 'PDX')

    AND (id, $vdate) not in (select id, $vdate from vkfl_is where task_id = 55)

    AND (id, $vdate) in (select id, vidate from market_data where marketed_date is null)

    AND id not in (select id from location)

    Q2

    SELECT id, $vdate, SupplierName, venddate, vid

    THE SELLER

    WHERE processid = 20

    AND venddate is null

    AND vid to (select vid from view_vid where type = 'PBX')

    AND (id, $vdate) not in (select id, $vdate from vkfl_is where task_id = 40)

    AND (id, $vdate) in (select id, vidate from market_data where region_date is null)

    AND id not in (select id from location)

    I can the UNION queries these two, but is there some way I can write a single query that gives me the same result as above two queries?

    Any help would be much appreciated

    Thanks in advance

    Sorry, it lack

    SELECT id, $vdate, SupplierName, venddate, vid

    THE SELLER

    ProcessID WHERE in (32.20)

    AND venddate is null

    AND vid to (select vid from view_vid where type = case when processid = 32

    then "PDX".

    else "PBX".

    end)

    AND (id, $vdate) not in (select id, $vdate from vkfl_is where task_id = case when processid = 32

    then 55

    40 else

    end)

    AND (id, $vdate) in (select id, vidate from market_data cases where processid = 32)

    then marketed_date

    of other region_date

    end to the null value

    )

    AND id not in (select id from location)

    Concerning

    Etbin

  • Join the two select queries

    Hi all

    I want to join the two select queries below
     SELECT ceil((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )MAT_ACT ,e.opn_job_desc,f.item_number
    FROM   xxnp_opn_joblog_001 E,
                  XXNP_OPN_JOBLOG_EST_002   F,
                  XXNP_OPN_JOBLOG_STAGE_002 G,
                         XXNP_OPN_JOBLOG_SLURRY_003 H
           WHERE   E.OPN_JOB_DESC   = e.OPN_JOB_DESC
             AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID 
             AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
          AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID AND F.ITEM_UOM = 'Pound' 
    
    
    SELECT  ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD))CALC_CEM ,e.opn_job_desc,f.item_number
         FROM 
                  xxnp_opn_joblog_001 E,
                  XXNP_OPN_JOBLOG_EST_002   F,
                  XXNP_OPN_JOBLOG_STAGE_002 G,
                 XXNP_OPN_JOBLOG_SLURRY_003 H
           WHERE E.OPN_JOB_DESC   = E.OPN_JOB_DESC
          AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID 
             AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
             AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
          AND F.ITEM_UOM = 'Cubic Feet'  
    
    i tried union but calc_cem column does not come in o/p
    
    i want these 4 columns as o/p
    mat_act    calc_cem    opn_job_desc     item_number
    Veuileez help
    thanking in advance
    concerning
    oracleuser

    Published by: makdutakdu on January 20, 2010 14:56
    select
           case when F.ITEM_UOM = 'Cubic Feet' then
                ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD))
           end CALC_CEM,
           case when F.ITEM_UOM =  'Pound'
                ceil((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )
           end MAT_ACT,
           e.opn_job_desc,f.item_number
         FROM xxnp_opn_joblog_001 E,
              XXNP_OPN_JOBLOG_EST_002   F,
              XXNP_OPN_JOBLOG_STAGE_002 G,
              XXNP_OPN_JOBLOG_SLURRY_003 H
          WHERE E.OPN_JOB_DESC   = E.OPN_JOB_DESC
          AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID
            AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
            AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
    

    you want to like that?

  • the pairing of two videos into one with IMovie

    I use two video cameras of hockey my son, one at each end of the ice (i.e. GOPROS) I am able to come down don't load the videos, no problem, however I can't seem to figure out how to take the two videos & match early in the game, and then select what video shows action better? I've seen other programs to match the two videos on top of the other and then (toggles between each video) to make a great film. Is this possible using IMovie?

    It is only provided for by professional non-linear editing (NLE), programs such as Final cut Pro where multiple injections of the same event, called "angles" can be combined into "composed of clips.

    In iMovie, you could put the video that has the best sound in the timeline panel, and then put the fragments of the other above (this picture in picture) video.  When you play, you will hear two sound tracks, but you can use these to manually move these fragments until in sync with the main video.  You can also use the waveforms on a time scale of timeline extended to help with this.  When close enough, you can increase the volume of the audio fragments to zero or detach and remove them.  It will be quite a lot of time and this is what can be done automatically in professional NLE.

    Note that it is possible to try Final Cut Pro for free for a month.  The layout of the interface is quite similar to iMovie.

    Geoff.

  • The two lines EX90 and add speed dial

    My friends, I need help in this case, we replaced digital phone with EX90 new to our general manager. but there is some functionality was available on the old phone:
    1 - the old phone has buttons around the screen as a speed dial buttons for certain numbers of employees
    2 - the old phone has two lines one private and one is the direct line

    Here, he wants the same features on the EX90:
    1. I configured the favorite on the EX90 as a shortcut, but he wanted the speed Dial buttons appear directly on the screen for

    press about this directlry.
    2 - I have configured the EX90 on CUCM and added the second row but he only appeared, if there is a method to allow

    calls on the (direct and private calls on different lines) EX90

    Please I need your urgent help

    The DefaultPanel Option is only in more recent versions of TC software, I do not remember what version it appeared in, but it is there in the last TC7.1.3.  If you don't, you probably use an older version of software on your EX.

    It is located in the web interface under Setup, System Configuration, UserInterface touchscreen Panel default.

    The options are: none, last, list of contacts, MeetingList and keyboard.

    The option of contact list

    Another option (although, as for a simple speed dial) is the installation Service that puts a button in the upper left corner of the touch screen.  Note: Only facility Service 1 is available in the Panel even if you configure 5 of them.

    Wayne
    --
    Please rememeber the frequency responses and mark your question as answered as appropriate.

  • Combine and join the two railways closed with a straight path

    Hello

    I have two way closed and I need to combine or join them with a straight path. When I selected all and do a right click for you join, he did not join. Please see my screenshot. Thank you.

    2 closed path.jpg

    You cannot create Y-junctions.

    You can perform one of the two possbilities:

    Simply place the path open everywhere where you need and leave it there.

    convert all forms with object > path > describe stroke and then use the pathfinder functions.

  • Join the two trees connect by prior Start With and return only common records?

    Oracle 10g Release 2 (10.2)

    I have two tables which have structured data. The results, when running queries individually are correct, but I need to join tree a tree two to get only the common records between them.

    -Trees a
    SELECT ip_entity_name, entity_code, hier_level, entity_parent
    Of ip_hierarchy
    WHERE hier_level > = 3
    CONNECT BY PRIOR Entity_code = entity_parent
    START WITH entity_code = "MEWWD";

    -The two tree
    SELECT ip_entity_name, entity_code, hier_level, entity_parent
    Of ipt_hierarchy
    WHERE hier_level > = 3
    CONNECT BY PRIOR Entity_code = entity_parent
    START WITH entity_code = "IPNAM";


    If I understand correctly, the joints can not work with CONNECT BY / START WITH queries?

    A WITH clause is an option?

    If possible, I don't want to put a selection in a database to display object and join against other queries.

    Thank you.

    Hello

    jtp51 wrote:
    Oracle 10g Release 2 (10.2)
    ...
    If I understand correctly, the joints can not work with CONNECT BY / START WITH queries?

    Before Oracle 9 it was true. Since you're using Oracle 10, you can if you wish; but I'm guessing that you don't want in this case.

    A WITH clause is an option?

    If possible, I don't want to put a selection in a database to display object and join against other queries.

    Yes, a WITH clause that is an option. Viewed online, as Zhxiang has shown, are another option. Either way gives you a regular display effect without creating a database object.

    You did not show a sample and the results, so no one can tell if a join is really what you want. Other possibilities include INTERSECT or an IN subquery.

Maybe you are looking for