How to concatenate values based on multiple columns of data duplicate in the loop

Hi all

Select '100' col_1, '111111' col2 of double

Union of all the

Select '100' col_1, '222222' col2 of double

Union of all the

Select '101' col_1, '333333' col2 of double

Union of all the

Select '102' col_1, '333333' col2 of double

I need to write by using cursor loop (configurable) so, it must concatenate col_1 or col_2

If,

In the table

col_1, col_2

100 111111

100 222222

101 333333

102 333333

Then

col_1, col_2

100 111111,222222

333333 101 102

Is it possible to compare and concatenate values in the loop

I have more than 4,000 bytes in the table of col_1,col_2 data values

Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

Ok then:

create a type that makes "grouped" clob

CREATE or REPLACE TYPE clob_obj IS OBJECT
(
CLOB theClob
ORDER MEMBER FUNCTION equals (in_clob_obj IN clob_obj) RETURN NUMBER
member function getClobVal return clob)
/

CREATE or REPLACE TYPE clob_obj BODY
IS
FUNCTION MEMBER ORDER is equal to (in_clob_obj IN clob_obj)
RETURN NUMBER
IS
BEGIN
RETURN sys.dbms_lob.compare (SELF.theClob, in_clob_obj.theClob);
END;
     
Member return clob getClobVal function
is
BEGIN
Return self.theClob;
end;
END;
/

WITH conc_table AS (SELECT 1111 cust_id, cust_no 'ABC', '101010' ordr_no OF DOUBLE UNION ALL

SELECT 2222 cust_id, cust_no 'ABC', '101010' ordr_no OF DOUBLE UNION ALL

SELECT 3333 cust_id, cust_no 'ABC', '101010' ordr_no OF DOUBLE UNION ALL

SELECT cust_id 4444, "CCC" cust_no, ordr_no ' 123456' OF DOUBLE UNION ALL

SELECT cust_id 5555, "CCC" cust_no, '454545' ordr_no OF DOUBLE UNION ALL

Select cust_id 66666, "CCC" cust_no, ordr_no ' 77777' DOUBLE UNION ALL

SELECT cust_id, "CCC" cust_no, ordr_no ' 77777 66666' FROM DUAL)

SELECT rtrim (XMLAGG (XMLELEMENT (E, cust_id_no, ',')). EXTRACT ('customer_id //text()').getClobVal (),',')

clob_obj (ord_number) .getClobVal)

cust_num

FROM (SELECT cust_id_no

cust_num

rtrim (XMLAGG (XMLELEMENT (E, ord_num, ",")). EXTRACT ('//text ()') .getClobVal (), ',') ord_number

FROM (SELECT DISTINCT cust_id_no, cust_num, ordr_no AS conc_table FROM ord_num cust_no cust_id)

GROUP BY cust_id_no

cust_num)

GROUP BY clob_obj (ord_number)

cust_num;

I got the distinct in the select more intimate for no duplicate of the basetable is only sent to reunification of...

HTH

Tags: Database

Similar Questions

  • How null out an article based on a column of data before posting?

    I use Apex 3.2

    I have a question that is based on the database column. My client wants me 'white out', the question which it is displayed so that the user will have to enter a new value instead of the one that is in the database.

    I tried to use a calculation "before the zone" to the element the value NULL. I can see the value prepares in debugging after extraction of the line took place, but when the item is displayed, it contains the value of the database, not my calculated valuie.

    I also tried using a field of text unsourced and then doing a submit after calculation to set the value of the element in a column of data from there, but no luck that way either.

    Also tried emptying the cache memory point, but I think it happens much too early.

    There must be a simple way to do...

    Any suggestion?

    No problem user486652 (name?).

    Yes, the $s function is one of the ApEx of built-in them - to see the ApEx documentation under the API, the Javascript API reference and you will find a variety of built-in functions that make all sorts of things. For Javascript, in general, take a look at www.w3schools.com for some really good reference material and tutorial - I use it constantly.

    OK, if you want to set the browser field to empty once the page loaded. Since it is an event of the page, it is not something that fires for a form field element, if you do not want the code here. ApEx 3.2, change the attributes of the page, and you will see a setting called "Attribute of HTML Body". You'll see a helpful note ball below the setting: this is the place to add onload events. The appropriate syntax will be:

    onload="$s('P2_REMEDY_TICKET', '');"
    

    Once the ApEx puts everything together and the rendering of the page, copy the following code will tell the browser to perform this $s function after the page load.

    But be aware - if you take a look at aid for that setting, you will see that it mentions that this will only work if your page template includes the #ONLOAD substitution string #. Do not know if all pages provided by ApEx models have already #ONLOAD #, but every one I've used. If your code still does not work, check your page tempate. In the area of definition, under header, you should see a body with something like tag:

    ...
    ...
    ...
    

    If it is, your page template supports the HTML Body attribute. If your body tag does not have a #ONLOAD #, add it.

    Hope this helps,
    John

    If you find this information useful, please indicate the 'useful' or 'correct' post so that others benefit. *

  • How to extract values of classic report column in the text element

    Hi all

    I've created a classic report (select id, name,' < input type = "button" value = "add" id = "add" name = "add" > "as" add details "details ;) with a single column as column values want link.i in the text element when I click on the link of that particular record of the report)

    (1) in the link this link column property I've specified the URL as [javascript:insert_in_table(#ID#,#NAME#)]

    (2) text two article P_ID, P_NAME

    (3) in the header of the page, I've specified as javascript

    < script type = "text/javascript" >

    function insert_in_table (id, name) {}

    var regId = ' #detail #'.substr (1);

    var req = new htmldb_Get (not null, $v ('pFlowId'), 'APPLICATION_PROCESS = add', $v('pFlowStepId'));

    Req.Add ('P_ID', ID);

    Req.Add ('P_NAME', Name);

    forced. GetAsync (function () {}

    If {(p.readyState is 4)

    $a_report (regId);

    }

    });

    }

    < /script >

    (4) created a (add) process whose point: on demand, run this process when requested by ajax

    pl/sql: insert into name_detail (id, name) values (: P_ID,: P_NAME)

    now the problem is I m not getting the values of column in the report in the text element, it only shows white.

    Kind regards

    Ketan

    Hello Ketan,

    Assuming that you want to insert the values into the table, this is why you want to set values for the element,

    If this is the case, then no need to define values for the element to insert.

    Follow the steps below, it is one of the embodiment of your condition.

    Step 1: Put the code below in your classic report query

    assuming that the id is of type number and the name is of type varchar, that's why I am attaching the name to apostrophe, see line 3

    select id
         , name
         , ''  as "Add to detail"
    from detail
    

    Edit 'Add details' column-> column attributes-> view-> column of Standard report

    Step 2: Create a process in the processing of the Page

    Name: INSERT_DATA

    Address the point: on demand, run this process when requested by ajax

    Process: putting the code below

    Declare
      P_ID number ;
      P_NAME varchar2(50);
      Begin
          P_ID   := apex_application.g_x01;
          P_NAME := apex_application.g_x02;
          insert into name_detail(id,name) values (P_ID,P_NAME);
    End;
    

    Step 3: Create a java script function to call your insert ajax process.

    Change the Page-> the function and the global variable declaration-> put the code below

    function insert_in_table(id,name) {
      apex.server.process ( "INSERT_DATA", {
          x01: id,x02: name
      }, { success: function( pData ) { }
      });
    }
    

    Hope this helps you,

    Kind regards

    Jitendra

  • How to extract a value of sql xml column clob data

    Hi guys,.

    I need help with the following. I have a column with data type xml (clob data). I need to extract the information in the < RI4 > tag and the < RI6 > tag.
    I truncated the data, but there is a repetition of the < RI4 > tag and consequenty internal to that tag RI6. However, each tag RI4 and RI6 has different data.

    I would be grateful if you can help me with this:

    <a xsi:schemaLocation="som location.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:somlocation">
      <b>Some stuff here</b>
      <c>
      <someinfo>blah</someinfo>
      <someinfo2>blah2</someinfo2>
      </c>
      <EffectiveDateTime>2015-10-01T00:00:00+10:00</EffectiveDateTime>
      <CurrencyCode>AUD</CurrencyCode>
      <RequiredInformation>
      <RequiredInformation2>
      <RequiredInformation3>
      <RI4>someinfo</RI4>
      <RI5>
      <RI6>
      <a1>1</a1>
      <b1>9.13</b1>
      </RI6>
      <RI6>
      <a1>2</a1>
      <b1>8.75</b1>
      </RI6>
      <RI6>
      <a1>3</a1>
      <b1>78.90</b1>
      </RI6>
      <RI6>
      <a1>4</a1>
      <b1>200</b1>
      </RI6>
      <RI6>
      <a1>5</a1>
      <b1>17.59</b1>
      </RI6>
      </RI5>
      </RequiredInformation3>
      </RequiredInformation2>
      </RequiredInformation>
      </a>
    

    I think that since it's the repetition I might need to make some sort of PL/SQL programming, but I really need help here to build this announcement also a way to extract the information.

    Any help would be greatly appreciated.

    Kind regards

    You can parse your XML like this

    SQL> with t
      2  as
      3  (
      4  select
      5  '
      6      Some stuff here
      7      
      8          blah
      9          blah2
     10      
     11      2015-10-01T00:00:00+10:00
     12      AUD
     13      
     14          
     15              
     16                  someinfo
     17                  
     18                      
     19                          1
     20                          9.13
     21                      
     22                      
     23                          2
     24                          8.75
     25                      
     26                      
     27                          3
     28                          78.90
     29                      
     30                      
     31                          4
     32                          200
     33                      
     34                      
     35                          5
     36                          17.59
     37                      
     38                  
     39              
     40          
     41      
     42  ' xml_str
     43    from dual
     44   )
     45  select t1.ri4, t2.a1, t2.b1
     46    from t
     47       , xmltable
     48         (
     49            xmlnamespaces(default 'urn:somlocation', 'http://www.w3.org/2001/XMLSchema-instance' as "xsi")
     50         ,  '/a/RequiredInformation/RequiredInformation2/RequiredInformation3' passing xmltype(t.xml_str)
     51            columns
     52               ri4 varchar2(10) path 'RI4'
     53             , ri5 xmltype path 'RI5'
     54         ) t1
     55       , xmltable
     56         (
     57            xmlnamespaces(default 'urn:somlocation')
     58          , '/RI5/RI6' passing t1.ri5
     59            columns
     60               a1 number path 'a1'
     61             , b1 number path 'b1'
     62         ) t2;
    
    RI4                A1         B1
    ---------- ---------- ----------
    someinfo            1       9.13
    someinfo            2       8.75
    someinfo            3       78.9
    someinfo            4        200
    someinfo            5      17.59
    
    SQL>
    
  • Use cursor Fetch to return multiple columns of data

    Hello

    This is my Table:

    SQL > select * connection;

    USERNAME PASSWORD CONFIRMPASSWORD
    --------------- --------------- ---------------
    Happy SAI SAI
    Kiran keyboard keyboard
    JAINA JAINA VARNU

    It's my stored procedure for this Table, it works very well there, Fetch it has the cursor returns only a single column of data.

    CREATE OR REPLACE PROCEDURE getEmpName (EMP_ID IN VARCHAR2)
    IS
    EMPNAME VARCHAR2 (50);
    CURSOR MYCUR
    IS
    SELECT a connection username where USERNAME = EMP_ID;
    BEGIN
    MYCUR OPEN;
    LOOP
    EXTRACT MYCUR IN EMPNAME;
    DBMS_OUTPUT. PUT_LINE (EMPNAME);

    WHEN THE OUTPUT MYCUR % NOTFOUND;
    END LOOP;

    close MYCUR;
    END;




    Now, I have a requirement, I need to get the password also with user name,
    Please tell me how to use FETCH from cursor to fill in the details in the declared Variables
    EXTRACT MYCUR IN EMPNAME;













    CREATE OR REPLACE PROCEDURE getEmpName (EMP_ID IN VARCHAR2)
    IS
    EMPNAME VARCHAR2 (50);
    VARCHAR2 (50) PASSWORD.
    CURSOR MYCUR
    IS
    SELECT username, PASSWORD of connection where USERNAME = EMP_ID;
    BEGIN
    MYCUR OPEN;
    LOOP
    FETCH IN EMPNAME MYCUR; / / Need help here *.
    DBMS_OUTPUT. PUT_LINE (EMPNAME);

    WHEN THE OUTPUT MYCUR % NOTFOUND;
    END LOOP;

    close MYCUR;
    END;

    Published by: user10503747 on October 14, 2010 11:51

    Published by: user10503747 on October 14, 2010 11:52

    EXTRACT MYCUR IN EMPNAME, PASSWORD;

    SY.

  • How to retrieve unique records with multiple columns

    I have a sps_prod table as described below-

    POGNAME VARCHAR2 (1500)
    INDEX #VERSION VARCHAR2 (200)
    POG_MODEL_STATUS VARCHAR2 (100)
    POG_LAYOUT_TYPE VARCHAR2 (500)
    POG_MARKET_SPECIFIC VARCHAR2 (500)
    POG_CONTACT_NUMBER VARCHAR2 (100)
    AREA_SUPPORTED VARCHAR2 (500)
    POG_COMMENTS VARCHAR2 (1500)
    POG_FOOTER_COMMENTS VARCHAR2 (1500)
    POG_ELECTRICAL_LIST_1 VARCHAR2 (1500)
    POG_ELECTRICAL_LIST_2 VARCHAR2 (1500)
    POG_CARPENTRY_1 VARCHAR2 (1500)
    POG_CARPENTRY_2 VARCHAR2 (1500)
    INSTALLATION_INSTRUCTION_1 VARCHAR2 (1500)
    INSTALLATION_INSTRUCTION_2 VARCHAR2 (1500)
    FIXTURE_REORDER_NUMBER VARCHAR2 (200)
    FIXTURE_ID VARCHAR2 (200)
    FIXTURE_NAME VARCHAR2 (500)
    FIXTURE_IMAGE VARCHAR2 (500)
    PART_REORDER_NUMBER_9 VARCHAR2 (500)
    PART_FIXTURE_ID_9 VARCHAR2 (500)
    PART_FIXTURE_NAME_9 VARCHAR2 (500)
    PART_FIXTURE_IMAGE_9 VARCHAR2 (500)
    UPC VARCHAR2 (50)
    ITEM_NUMBER VARCHAR2 (50)
    DESCRIPTION VARCHAR2 (700)
    MERCH_TYPE VARCHAR2 (20)
    HEIGHT VARCHAR2 (100)
    WIDTH VARCHAR2 (100)
    DEPTH VARCHAR2 (100)
    DATE OF CREATE_TS

    There are 4 million records in it and many with the same combination of POGName, #Version, POG_Model_Status, POG_Layout_Type, POG_Market_Specific, POG_Contact_Number and Fixture_Name Index. How do the records to retrieve all the columns above, but with a unique combination of fixture_name and reorder_number. It has no keys defined on the table.

    I guess that it is a simple problem but the fact I'm trying to retrieve all the columns I'm stumbling.

    Thanks in advance.

    Hello

    Sanders_2503 wrote:
    ... There are 4 million records in it and many with the same combination of POGName, #Version, POG_Model_Status, POG_Layout_Type, POG_Market_Specific, POG_Contact_Number and Fixture_Name Index. How do the records to retrieve all the columns above, but with a unique combination of fixture_name and reorder_number.

    I don't see a column named reorder_number. Do you mean fixture_reorder_number or part_reorder_number_9?

    So, you want only one row for each distinct combination of fixture_name and some other column (I'll assume it's fixture_reorder_number). Does it matter which line? They will not necessarily have the same values for the other columns.
    The following query returns the one with the first pogname (in sort order):

    WITH     got_r_num     AS
    (
         SELECT  pogname, index#version, pog_model_status, pog_layout_type
         ,     pog_market_specific, pog_contact_number, fixture_name
         ,     ROW_NUMBER () OVER ( PARTITION BY  fixture_name
                                   ,                    fixture_reorder_number
                             ORDER BY        pogname
                           )         AS r_num
         FROM    sps_prod
    )
    SELECT  pogname, index#version, pog_model_status, pog_layout_type
    ,     pog_market_specific, pog_contact_number, fixture_name
    FROM     got_r_num
    WHERE     r_num     = 1
    ;
    

    If there be a tie (i.e. two or more lines with the same fixture_name, fixture_number and pogname first) and then the will be chosen arbitrarily.

    Instead of "ORDER BY pogname", you can ORDER all the other columns OR expressions, but you must have an ORDER byclause of analytics. You can do "ORDER BY NULL" If you really want pcik an arbitrary line.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and also publish the results you want from these data (or some examples of acceptable results).
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

  • How to find max based on 2 columns.

    Hi I have a table where I have two fields of digital type (date and time)) (this field are not date format time but digital)

    Date is in column A and column B represent the time.

    How can I find the maximum value of column A and with results for a Max find b.

    example of

    A - - - - - - - - - -B
    101010-202020
    101011-202021
    101012-202021
    101010-202022
    101012-202020
    ......... ...........


    I'm looking for is
    A - - - - - - - - - - B
    101012-202021

    Thank you
    with t as (
               select 101010 a,202020 b from dual union all
               select 101011,202021 from dual union all
               select 101012,202021 from dual union all
               select 101010,202022 from dual union all
               select 101012,202020 from dual
              )
    select max(a) a,
           max(b) keep(dense_rank last order by a) b
      from t
    /
    
             A          B
    ---------- ----------
        101012     202021
    
    SQL>  
    

    SY.

    Published by: Solomon Yakobson, February 24, 2010 12:57

  • AF:Switcher, handfuls of line column values based on another column in the table

    Hello

    I have a question if you can help me on this. It's on af:switcher.

    What I'm trying to do this - is in a table of the adf, based on the value of a column, I want another column to display as a link or not.
    For example, if the status column is 1, then the id column display as a link (I just put a h:outputLink around outputText to do), if it is then show him without bond.

    For this I put two different facets and opportunities switcher to decide what facet of show which line.

    BUT what is happening is that only on opportunities is made. Either / or scenario. It is not made each line according to the value of the status column.

    What is planned.

    I just tried with the dept table.

                    
                    
                    
                      
                    
                    
                    
                        
    
                      
                    
    

    The lines for which the deptno > 20, I wanted to display the pass as link and for the deptno<=20, log="" will="" be="" an="" input="" text.="" it="" works="" fine="" for="" me.="" probably,="" you="" may="" need="" to="" get="" rid="" of="" h:outputlink="" and="" use="" commandlink="" golink="">

    Arun-

  • Running or Cumulative count based on multiple columns

    Hello-

    I created a table ZZCEL_CUST_TRIAL as follows:

    CREATE TABLE 'RPT_MART '. "" ZZCEL_CUST_TRIAL ".

    (

    NUMBER OF "ORD_DAY_DW_ID."

    NUMBER OF "DAYPART_DW_ID."

    NUMBER OF "PRODUCT_DW_ID."

    NUMBER OF "ACCOUNT."

    KEY CONSTRAINT PRIMARY 'PK_CUST_TRIAL' ('ORD_DAY_DW_ID', 'DAYPART_DW_ID', 'PRODUCT_DW_ID')

    )

    The data of the table looks like this (sample data)

    PRODUCT_DW_ID ORD_DAY_DW_ID DAYPART_DW_ID COUNTIES

    5588                             2                                  3316                        6

    5587                             2                                  1323                        3

    5578                             2                                  1323                        3

    5564                             1                                  1323                        8

    5592                             1                                  793                          7

    5580                             1                                  3206                        4

    5592                             1                                  1708                        4

    5589                             2                                  3316                        2

    5566                             1                                  1323                        2

    5603                             3                                  3316                        4

    The column of numbers actually shows how many customers have bought this product in this range that day. Now, I want to get a (cumulative) current account of customers of each target and each product so basically the output will look like this:

    Daypart_dw_id Product_dw_id RUNNING_COUNT

    2                                                3316                                   8

    3                                                3316                                   12

    I'm trying to use this query to get the number of race, but the figures are not good...

    SELECT DISTINCT CTR. DAYPART_DW_ID, CTR. PRODUCT_DW_ID

    SUM (CTR. COUNTIES) (CTR ORDER. DAYPART_DW_ID, CTR. COUNTIES OF PRODUCT_DW_ID LINES BETWEEN UNBOUNDED PRECEDING AND 1 PRECEDING)

    OF rpt_mart. ZZCEL_CUST_TRIAL CTR

    That's what I have which is obviously not correct. How can I get a count of the number of CHARGES and target products. Thanks in advance for any help. Much appreciated!

    DAYPART_DW_IDPRODUCT_DW_IDCHARGES
    1295765
    12223140
    12338856
    152399870
    152399894
    152400087
    152

    400234

    Select

    DAYPART_DW_

    PRODUCT_DW_ID

    sum (sum (counts)) on cumulative_sum (partition by order PRODUCT_DW_ID of DAYPART_DW_)

    from the data

    Group

    PRODUCT_DW_ID, DAYPART_DW_

    order by

    PRODUCT_DW_ID, DAYPART_DW_

    DAYPART_DW_ PRODUCT_DW_ID CUMULATIVE_SUM
    1 793 7
    1 1323 10
    2 1323 16
    1 1708 4
    1 3206 4
    2 3316 8
    3 3316 12
  • How to show a panelist in multiple columns

    I put the argument maxColumns property to 6, but af:panelList shows always 1 column, how to display several columns as in fdoler browser?

    Hello

    Always mention your JDev version.

    Try to set the rows property to 1 as well as the maxColumns argument.

    Arun-

  • How do I enter a value based on condition in a pass with using the trigger.

    Hello
    I am new bie.

    When replicating form mssql 2005 he enters space for null in col oracle clob.
    so I wanted to know.
    (1) can check constaint change the contents of the column on which it is defined?

    as I want to buried null in a column, if entered date is later than the current date on the other the date entered.
    I don't want to use triggers or script on the client side.


    Yours sincerely

    944768 wrote:
    Hello
    I am new bie.

    When replicating form mssql 2005 he enters space for null in col oracle clob.
    so I wanted to know.
    (1) can check constaint change the contents of the column on which it is defined?

    as I want to buried null in a column, if entered date is later than the current date on the other the date entered.
    I don't want to use triggers or script on the client side.

    # This is not what is a constraint. Constraints to ensure that the data meet the criteria, it does not modify data.
    Triggers have been designed to allow the manipulation of data, as it was inserted or changed, allowing access to the Interior: NEW structure they provide.

    What is the problem with the help of a trigger for this?
    Otherwise, why not change the way in which the 'replicated form' works so that it does not provide a space when she expects a null value?

    Without more details, it is difficult to help you, because we do not know which provides the data, what looks like at your table or ultimately what you're trying to reach.

    Read: {message identifier: = 9360002}

  • Best way to select distinct values, based on another column?

    I have a table with three columns: id (NUMBER), data_dt (DATE) and data_value (NUMBER).
    There is a primary key id and data_dt.

    I want to choose the folder with the last data_dt for each unique identification number.

    What is the best way to do it?
    I have three different methods, but there may be something that I am missing.

    First of all:
    SELECT *
    FROM
    (
      SELECT id, data_dt, data_value,
             FIRST_VALUE(data_dt)
             OVER (PARTITION BY id ORDER BY data_dt DESC) AS last_data_dt
      FROM the_table
    )
    WHERE data_dt = last_data_dt;
    (I use ORDER BY... DESC, instead of just ORDER BY I don't need the clause BETWEEN the LINES)


    Second:
    SELECT t1.*
    FROM the_table t1
    JOIN
    (
      SELECT id, MAX(data_dt) AS last_data_dt
      FROM the_table
      GROUP BY id
    ) t2 ON (t2.id = t1.id AND t2.data_dt = t1.data_dt);
    Third:
    SELECT t1.*
    FROM the_table t1
    WHERE t1.data_dt =
    (
      SELECT MAX(t2.data_dt)
      FROM the_table t2
      WHERE t2.id = t1.id
    );
    -Don

    As mentioned in hoek, you will need to test all scenarios.

    However, in my opinion the more faster will be those who accesses the table that only ONCE instead of TWICE as some scenarios require.

    HTH!

  • Report with multiple columns NUMBER of counts of the same table

    I am new to discoverer, so I'm a little lost.

    I work to create a report to show usage data and Knowledge Base of e-business. I have written using subqueries in SQL query that is in the format:

    Solution number | Soultion title | Solution views. Positive feedback | Negative feedback
    Title of 12345 _ 345 _ 98 34


    The entries 'Views', 'Positive' and 'Negative' are stored in the same table, so I do a count where setid = setid and usedtype = VS, then count where usedtype = usedtype and PF = NF

    Discoverer, I can get the number of solution, the title and THE totals but I can't seem to understand how to get an ACCOUNT for three different things from the same table in the columns on the same line.

    When I go on change map-> select the items once I select the option NUMBER of the UsedType column in the CS_KB_SET_USED_HISTS table, I can't select it again. I also found way now to add a column based on a query entered.

    If someone could help it would be much appreciated.

    Thank you

    Published by: Toolman21 on December 2, 2010 14:17
    _ to correct spacing added.

    Hello
    You can separate the column with a case or decode.
    for example to create 2 calculations:

    case
    When usedtype = "PF".
    then - that contain both
    0 otherwise
    end

    case
    When usedtype = 'NF '.
    then - that contain both
    0 otherwise
    end

    After that, you can create the aggregation count on those.

    Tamir

  • In Acrobat XI, how can I select and move multiple blocks of text/image at the same time on the same page?

    I work with PDF files generated by student requiring all content in a specific range of margin. Occasional tables and figures are indented or otherwise properly spaced so that the content violates the margin requirement. In Acrobat X, I could use the selection tool to draw a selection rectangle around all text and lines of a table for example and just drag the entire table over a little to meet the requirements without referring the PDF to the author for correction. It did not always work, but quite often that I was able to use it on a daily basis.

    Is it possible to select several (but not ALL) blocks of text and image on a page pieces, so they may be submitted at the same time? If I have to select each text block and lines (or each point and in a chart) and move them each individually, it's going to be a nightmare.

    I have Acrobat XI for Mac and Windows, but tend to use the version of Windows more often.

    People have reported what happens when preview of the output (I think) window is open. So you can close.  have not heard of another fix

  • Get the cumulative values in a single column based on another column in reports

    Hi all

    I have a requirement to get cumulative values based on another column.
    I 'Sales rep name' in the first column.
    Correspondent "Values of the invoice line" in the second column.
    Want to have cumulative of all the values for each sales invoice line.
    Then apply rank and display the top 10 sales reps based on invoice lines.
    Since there is no rank option in the PivotTable, I do this in the report table.

    Looking for the best entries...

    Thanks in advance...

    Try below
    2nd column: "name of Sales rep.
    column 2: SUM ("invoice line values ' BY 'Name of Sales rep'") and sort this field desc.
    3rd column: fx RANK (SUM ("invoice line values" BY "Sales rep name")), to hide this column, so that you don't confuse your users.

    and put the filter on the 3rd column below 5

    I hope this works for you

Maybe you are looking for

  • Sync icon missing

    OK I am running 12.34.1 on iTunes for windows, you just buy other titles and when I go to sync my ipod iTunes appears not the icon of usual clock BUT, when I go into the ipod, the tracks are now here, I have the auto download option set as on the iPo

  • Satellite Pro L510-S401 - no sound

    I have laptop Satellite L510-S401. For the first time, when I set up some music, the sounds came out, but then it has no more... I'm so confused...No sounds coming out from the speaker, but everything seems fine. I just bought it as Twitter.com... Hi

  • EU of Vista Multilingual User Interface Pack

    I just read a story on Vista and change a display language. http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=25723 Windows Vista supports other languages, EU Vista has Pack (Multilingual) user who allows to easily switch between

  • Change date and time on a HP Officejet Pro 8600 Plus.

    How change/set up the date and time on a HP Officejet Pro 8600 more when the date / time under function State of preferences function is locked? My computer is an ASPIRE Z3371.

  • Add the user to the users group in the Users.ini file using c#

    Hello Using a c# application, we strive to add/remove a user from the TestStand Users.ini file. The CreateDeleteUsers.seq file in the samples of TestStand is used as a reference. We have seen that we are able to add the user to the list of user help