Identical records count

Hello

I have a question about the counting of identical records.

Please see the XML below

<>CATALOG
< CD >
ABC < COMPANY > < / COMPANY >
John < NAME > < / NAME >
Dallas < LOCATION > < / LOCATION >
< CD >
< CD >
def < COMPANY > < / COMPANY >
Bob < NAME > < / NAME >
NY < LOCATION > < / LOCATION >
< CD >
< CD >
the IGS < COMPANY > < / COMPANY >
JAG < NAME > < / NAME >
Dallas < LOCATION > < / LOCATION >
< CD >
< CD >
jkly < COMPANY > < / COMPANY >
Mike < NAME > < / NAME >
Dallas < LOCATION > < / LOCATION >
< CD >
< / CATALOGUE >
--------------------------------------
Example of report
Number of location
Dallas 3
NEW YORK 1
-----------------------------------
Can someone tell me how to get this since I'm new to BI publisher.

Thanks in advance.

use count. Don't forget to give me points!


    - 

IKE Wiggins
http://bipublisher.blogspot.com

Tags: Business Intelligence

Similar Questions

  • The analysis of a column of delimeted and then summarizing Records counties

    Hi all - I'm doing some different things with a SQL query, and it's a bit beyond my skill level.

    1. The first thing I do is to analyze a varchar2 column in a table that represents the "tags" and remove the unique values. The tags are either space, comma or semicolon delimited and sometimes there is a space before and/or after the delimiter.
    2. The second thing I have to do is to summarize the number of records per unique label.

    For example:

    create table tags (record_id number, tags varchar2(120)); --Assume record_id is the primary key
    
    
    insert into tags (record_id, tags) values (101, 'Apples, Bananas');
    insert into tags (record_id, tags) values (102, 'Apples:Oranges');
    insert into tags (record_id, tags) values (103, 'Bananas:Oranges');
    insert into tags (record_id, tags) values (104, 'Bananas Grapes');
    insert into tags (record_id, tags) values (105, 'Bananas:Oranges:Apples');
    insert into tags (record_id, tags) values (106, 'Apples Grapes');
    commit;
    

    In the end, the result of the query that I need is:

    4 apples

    Bananas 4

    3 oranges

    Grapes 2

    So something like this, except of course I can't hard code tag value and I would need the request to pick up every single tag values:

    select 'Apples', count(record_id) from tags where tags like '%Apples%' group by 'Apples';
    
    'APPLES' COUNT(RECORD_ID)
    -------- ----------------
    Apples                  4 
    

    Thanks in advance for your suggestions,

    John

    Hello

    Relational databases are designed to have 1 single piece of information in each column of each row, not some kind of list delimited with a variable number of elements.  It is therefore designed a basic for the database he called first normal form.  This, and a lot of other jobs will be much simpler and more effective if you standardize your table.

    If you're stuck with the current design, here's a way to do it:

    WITH got_tag AS

    (

    SELECT REGEXP_SUBSTR (tags

    , '[^, :]+'

    1

    LEVEL

    ) As a tag

    Tags

    CONNECT BY LEVEL<= regexp_count="" (tags,="" '[^,="">

    AND record_id = record_id PRIOR

    AND PRIOR SYS_GUID () IS NOT NULL

    )

    SELECT tag

    AS cnt ACCOUNT (*)

    OF got_tag

    GROUP BY tag

    ORDER BY tag

    ;

    Output:

    TAG CNT

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

    4 apples

    Bananas 4

    Grapes 2

    3 oranges

    As you can see, almost all the complexity of this query is in the got_tag of the subquery, which puts each individual tag on a separate line, that is how it should be stored in the first place.  If you had a table standard, you wouldn't need to do all this.

  • Does Oracle 10g - Record Count/Total number of records.

    Hello, I'm looking to display the current records of number / total Records at the bottom left of a custom form. Please see below, made me know how this is done. Enjoy it!

    record_count.jpg

    Thanks, Naveen.

    Your question is unclear.  Forms already did what you mentioned and appears as such in the image you downloaded.  If you don't see it in a particular form, open the form in the report generator and check at the level of the 'form', property 'The Console window' is not NULL and properly reflects the name of the appropriate window.  A NULL value prevents the message bar appears.

  • Export DRM including a record count property

    Hi all

    Can you please indicate, if it is possible to get the number of i, record e nodes retrieved during an export of the hierarchy.

    Is there a property of the system available here to get the number of records or we can do it with a property derived from creation with a parameter for the number of members in the hierarchy.

    Thank you

    Madhu

    Hi Madhabika,

    You can take advantage of this-

    Under tab target your export, there is a section "Footer"use this customization tag there <%RecordCount%>.

    That would give you a number of records at the end of the export on the footer.

    Otherwise, on the columns tab it under prop category selection there is a prop category called 'Specific Export' having a record ID column.

    Include in your export and this will give you a record against each record id, you can use the id max record from there.

    Thank you

    Denzz

  • Addign a computed column of the record count in table external

    Hello

    I have a csv file that is loaded using the external table. My need is to give a number to each record in the file and save it in one of the extra column in the table, can anyone suggest how it is possible?

    The structure of the file is:
    $cat emp.txt
    7369,SMITH,CLERK,7902,12/17/1980,800,,20
    7499,ALLEN,SALESMAN,7698,2/20/1981,1600,300,30
    7521,WARD,SALESMAN,7698,2/22/1981,1250,500,30
    7566,JONES,MANAGER,7839,4/2/1981,2975,,20
    7654,MARTIN,SALESMAN,7698,9/28/1981,1250,1400,30
    7698,BLAKE,MANAGER,7839,5/1/1981,2850,,30
    7782,CLARK,MANAGER,7839,6/9/1981,2450,,10
    7788,SCOTT,ANALYST,7566,12/9/1982,3000,,20
    7839,KING,PRESIDENT,,11/17/1981,5000,,10
    7844,TURNER,SALESMAN,7698,9/8/1981,1500,0,30
    7876,ADAMS,CLERK,7788,1/12/1983,1100,,20
    7900,JAMES,CLERK,7698,12/3/1981,950,,30
    7902,FORD,ANALYST,7566,12/3/1981,3000,,20
    7934,MILLER,CLERK,7782,1/23/1982,1300,,10
    
    --and the table structure is:
    
        CREATE TABLE TMP_emp_ext
        (
        EMPNO                                      NUMBER(4),
        ENAME                                              VARCHAR2(10),
        JOB                                                VARCHAR2(9),
        MGR                                                NUMBER(4),
        HIREDATE                                           DATE,
        SAL                                                NUMBER(7,2),
        COMM                                               NUMBER(7,2),
        DEPTNO                                             NUMBER(2)
        )
        ORGANIZATION EXTERNAL
          (  TYPE ORACLE_LOADER
             DEFAULT DIRECTORY DIR_N1
             ACCESS PARAMETERS
               ( records delimited  by newline
            fields  terminated by ','
            missing field values are null
           )
             LOCATION (DIR_N1:'emp.txt')
          )
        REJECT LIMIT UNLIMITED
        NOPARALLEL
        NOMONITORING
     /
    Now, my need is to give a number to each record... like the record from 7369, SMITH should be granted record n ° 1, 7499, ALLEN should be record No. 2 etc... can anyone suggest how it is possible?

    Thank you
    orausern

    T. Kyte write RECNUM should work in http://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:52733181746448 #52977916329285 because it is SQL * Loader syntax. However I've wasn't able to make it work with Oracle 10.2.0.4. But in case of errors of loading, you should find in _XXXXX.log the number of rejected records line (in my example it's the meaning of the 'line 2' "line 2"):

    erreur lors du traitement de la colonne EMPNO, la ligne 2, pour le fichier de données /tmp/emp.txt
    ORA-01722: invalid number
    
  • Display the total record count

    Hello
    I need to display the total number check-in alert msg and based on the selection of the user [Ok/Cancel] I need to treat the query or the output to the export. The idea is that after applying the filter, if the query returns many users perhaps wouldn't go forward with reoprt however if it returns less numbr of users of lines out of the export.
    Please suggest how do it.

    I think that you will have difficulty to implement your interaction needed with OBIEE, keeping in mind that the query must trigger in any case to return the number or lines, what about using paging controls on the report to limit the first round returned on the dashboard, set up the column we mentioned earlier in this thread use the following in a narrative view:

    Total number of records: @1

    where @1 is the number of column for the max (rcount (1)) in the criteria pane-, you can hide this column from the report itself.
    set the number of rows to display to 1 in the narrative
    If you set # of lines in the paging controls to display reasonable something like 10 or leave maximum by default of 25, visitors will see the first 25 records or the story will tell them how many records exist, so they can hit all the paging controls show and then do what they want with it?

    In addition and a bit more complicated, create a query that returns a row if the number or records in your query returns more than your threshold, for example 4000 lines. You can then use this request as "Guided Navigation" to view the report on the dashboard of conditionally, you might have another section of the dashboard that displays on the back with a piece of text saying your user name that the number of lines have exceeded the threshold on this section you might give a navigation link to the report itself said (whether in the answers or another page dashboard).

    I hope that gives you control of the mental health I think that your after, though without going through a nice ok / Cancel button.
    HTH.

  • Columns of the sum of different record count of joined tables

    I have a problem with a query, please help.

    I have two tables:
    create table rec_a (key_code varchar(20),
                    TOT_AMT varchar(20),
                    INV_AMT varchar(20))
    / 
     
    create table rec_B (key_code varchar(20),
                    INVOICE_AMT varchar(20),
                   PAID_AMT varchar(20))
    / 
     
    insert into REC_A values (123123,  1168182.16, 1168182.16);
    
    insert into REC_B values (123123, 205699.04,205699.04);
    insert into REC_B values (123123,130912.78,130912.78);
    insert into REC_B values (123123, 81622.87,81622.87);
    insert into REC_B values (123123, 438032.43,438032.43);
    insert into REC_B values (123123, 159936.17,159936.17);
    insert into REC_B values (123123, 151978.87,151978.87);
     
    Table 1
    KEY_CODE TOT_AMT INV_AMT
    123123 1168182.16 1168182.16


    Table 2
    KEY_CODE INVOICE_AMT PAID_AMT
    123123 205699,04 205699.04
    123123 130912,78 130912.78
    123123 81622,87 81622.87
    123123 438032,43 438032.43
    123123 159936,17 159936.17
    123123 151978,87 151978.87


    I wrote a query to sum up all the areas (tot_amt, inv_amt, invoice_Amt, paid_amt)
    SELECT B.key_code,sum(A.invoice_amt),sum(a.paid_amt),SUM(b.tot_Amt),SUM(b.inv_amt) FROM rec_a B, rec_b A WHERE A.KEY_CODE=B.KEY_CODE AND B.KEY_CODE in ('123123')
    group by B.key_code
    I got this:

    KEY_CODE SUM (A.INVOICE_AMT) SUM (A.PAID_AMT) SUM (B.TOT_AMT) SUM (B.INV_AMT)
    123123 1168182.16 1168182.16 7009092.96 7009092.96

    But I expected this

    KEY_CODE SUM (A.INVOICE_AMT) SUM (A.PAID_AMT) SUM (B.TOT_AMT) SUM (B.INV_AMT)
    123123 1168182.16 1168182.16 1168182.16 1168182.16


    Can someone help me out here?

    Thank you

    Published by: 1003064 on April 29, 2013 03:19

    Hello

    1003064 wrote:
    I have a problem with a query, please help.

    I have two tables:
    Table 1
    KEY_CODE TOT_AMT INV_AMT
    123123 1168182.16 1168182.16

    Table 2
    KEY_CODE INVOICE_AMT PAID_AMT
    123123 205699,04 205699.04
    123123 130912,78 130912.78...
    123123 81622,87 81622.87
    123123 438032,43 438032.43
    123123 159936,17 159936.17
    123123 151978,87 151978.87

    I wrote a query to sum up all the areas (tot_amt, inv_amt, invoice_Amt, paid_amt)

    SELECT B.key_code, sum (a.invoice_amt), sum (a.paid_amt), SUM (b.tot_Amt), SUM (b.inv_amt) FROM rec_a A, rec_b B WHERE A.KEY_CODE = B.KEY_CODE AND B.KEY_CODE in ('123123')
    B.key_code group

    I got this:
    KEY_CODE SUM (A.INVOICE_AMT) SUM (A.PAID_AMT) SUM (B.TOT_AMT) SUM (B.INV_AMT)
    123123 1168182.16 1168182.16 7009092.96 7009092.96

    But I expected this

    KEY_CODE SUM (A.INVOICE_AMT) SUM (A.PAID_AMT) SUM (B.TOT_AMT) SUM (B.INV_AMT)
    123123 1168182.16 1168182.16 1168182.16 1168182.16

    Thus, the last 2 columns must be exactly what is stored in table1? Then either
    b include these columns in the GROUP BY clause and not to use the SUM,
    (b) the GROUP BY on rec_a alone, separately, can't join the results to the rec_b, or
    (c) using MIN or MAX, instead of SUM. (Anyone. Since there is only one value, MIN will be the same as MAX.)

    Here is an example of (a):

    SELECT    B.key_code
    ,       sum (a.invoice_amt)     AS sum_invlice_amt
    ,       sum (a.paid_amt),     AS sum_paid_amt
    ,       b.tot_Amt
    ,       b.inv_amt
    FROM        rec_a          A
    ,        rec_b          B
    WHERE        A.KEY_CODE     = B.KEY_CODE
    AND        B.KEY_CODE      in ('123123')
    group by  B.key_code
    ,            b,tot_amt
    ,       b.inv_amt
    ;
    

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
    Point where the above query is to produce erroneous results, and explain, using specific examples, how you get the right results from data provided in these places.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

  • ODI is to take more than 24 hours to load records 6lakh +.


    Hi all

    I have an iterface with source and target on two different servers. There are some validation on the data source. The requirement is that new records are to be inserted and existing records must be updated. My interface is glued to the table of flow(I$) of load and running for so long. Here are the details of KM, I used. any help on this is much appreciated.

    LKM: lkm sql for sql

    IKM: incremental update of the IKM Oracle

    Screening strategy: no _exists

    CKM: CKM Oracle

    Thank you

    No, the problem for you, it's obviously the IKM.

    If you use another or you change the screening strategy.

    Try using POST_FLOW or NONE.

    The detection strategy is to exclude identical records already exist in the target. If you set it to zero, all rows will be updated in the target even if there is no change.

    IKM Oracle updated incremental MERGE got a screening strategy more (FUSION one), which is not one I use $_ table at all.

    Kind regards

    JeromeFr

  • Save the implementation of counter as 1,2,3,4,5,1,2,3,4,5,1,2... use of rownum

    Hello
    Need to set up a check-in counter. the meter should be increased from 1 to 5, and then start return of 1. Thus, the record counter must be 1,2,3,4,5,1,2,3,4,5,1,2...
    Currently I use "select rownum meter, Id SurveyId in PB_SURVEY_USER_TEST;"
    How I can use rownum to get a record count as 1,2,3,4,5,1,2,3,4,5,1,2...
    Need help here...

    MOD (rownum-1, 5) + 1?

    Edited by: bencol February 1, 2013 12:04

  • Find and change a single record in the database

    I create a few forms that access an Access database that will be used to enter data into the database.  I am able to open the database files and scroll through records one at a time and have added features to be able to search and display a single record.  The problem I'm having is when I load a single record and then modify that file, I can't save the changes to the record, in other words, the record is not updated on the database.

    I can add new records and modify records as long as I scroll to them using the. next(),. last(),. first() and. previous() orders; However, when I insert a single record I can't figure out how to save the changes made to that record in the database.

    Here it is:

    xfa.sourceSet.DataConnection.open ();

    xfa.sourceSet.DataConnection.first ();

    var oDataConnList = xfa.sourceSet.DataConnection.nodes

    var oDataConnList.length = nCount;

    for (var i = 0; i)< ncount;="">

    If (CurrentRecord.rawValue! = SearchField.rawValue) {}

    xfa.sourceSet.DataConnection.next ();

    }

    }

    This establishes the data connection, made sure that it starts on the first record, counts the number of files and of volutes each record until he finds the one the user sought!

  • Dynamically change number of records displayed in the block to the runtime

    Hello
    I would like to implement the treatment where I get a (whole) number in a field (i.e. 3) and then I should have 3 records in a block

    I want to know if it is possible to change dynamically during execution (via the trigger of this point) where I managed the record count displays the property.

    I searched through set_block_property (a, b, c), but did not find the corresponding property_name to manage as appropriate.

    Thank you in advance for your return;

    Cannot set the number of records displayed the runtime property.

    see you soon

  • Inserting data into a table and insert many records into newtable

    Hi all

    I have table A and table b.
    Suppose that if I insert the data into the table, this table is inserted, the number of records records Count I want to insert in the table B

    I have to write a procedure for this cannot so any help on this.


    Thanks in advance.


    Sikora.

    Hello

    You can use this anonymous block and extend it to create the procedure. You can delete loop or leave it there and use the cursor loop

    DECLARE
       j   NUMBER;
    BEGIN
       FOR i IN 1 .. 100
       LOOP
          INSERT INTO A
          VALUES ('col1', 'col2', 'col3');
    
          j   := j+ sql%ROWCOUNT;
       END LOOP;
    
       INSERT INTO B   VALUES ('table name ', j);
    
       COMMIT;
    EXCEPTION
       WHEN OTHERS
       THEN
          ROLLBACK;
          DBMS_OUTPUT.put_line (SUBSTR (SQLERRM, 1, 200));
          RAISE;
    END;
    

    Published by: OrionNet on January 21, 2009 12:53 AM

  • Merge statement: update only when a difference

    Hello

    I have two tables have almost the same columns, how can I use the merge statement to update the table target only when there is difference between the source and target table. Is there an easier way to do not compare every column one by one? I use Oracle 11.2.


    Here's the MERGE statement:

    Merge into trgt tb_trgt using tb_src src
    on (src.id = trgt.id)
    When not matched then values of insertion (trgt.id, trgt.nm, trgt.addr) (src.id, src.nm, src.nm)
    when matched, then update set trgt.nm = src.nm, trgt.addr = src.addr
    where trgt.nm <>src.nm or trgt.addr <>src.addr
    ;

    Is there an easier way to clarify the clause in the NO MATCHED? I don't want to compare every column in the tables. Because I might have a lot of columns in tables.

    Thank you

    939569 wrote:
    I have two tables have almost the same columns, how can I use the merge statement to update the table target only when there is difference between the source and target table. Is there an easier way to do not compare every column one by one? I use Oracle 11.2.
    Is there an easier way to clarify the clause in the NO MATCHED? I don't want to compare every column in the tables. Because I might have a lot of columns in tables.

    I use the method of Tom Kyte to compare tables; It gives me the differences between the source and the target using GROUP BY, who manages the value NULL comparisons. Can I use this result in the MERGER. Here is a step by step illustration. First, set up test data:

    define num_rows = 10
    /
    define pct = 20
    /
    define value_length = 50
    /
    define num_mods = round((&num_rows/3)*(&pct/100),0)
    /
    DROP TABLE T_TARGET;
    /
    DROP TABLE T_SOURCE;
    /
    create table t_target(key1 number, value1 varchar2(&value_length), constraint pk_target primary key(key1));
    insert /*+ append */ into t_target
    select level+&num_mods*3, rpad('DO NOTHING - same in source and target ',&value_length, '*')
    from dual
    where level <= &num_rows-&num_mods*2 connect by level <= &num_rows-&num_mods*2;
    /
    create table t_source as select * from t_target;
    /
    insert into t_source
    select level, rpad('INSERT - in source, not in target ',&value_length, '*')
    from dual where level <= &num_mods connect by level <= &num_mods;
    /
    insert into t_target
    select level+&num_mods, rpad('DELETE (after update) - not in source, in target ',&value_length, '*')
    from dual where level <= &num_mods connect by level <= &num_mods;
    /
    insert into t_source
    select level+&num_mods*2, rpad('UPDATE - put this in target ',&value_length, '*')
    from dual where level <= &num_mods connect by level <= &num_mods;
    /
    insert into t_target
    select level+&num_mods*2, rpad('UPDATE - update this from source ',&value_length, '*')
    from dual where level <= &num_mods connect by level <= &num_mods;
    /
    commit;
    /
    select 't_target', count(*), value1 from t_target group by 't_target', value1
    union all
    select 't_source', count(*), value1 from t_source group by 't_source', value1;
    /
    'T_TARGET'   COUNT(*) VALUE1
    ---------- ---------- --------------------------------------------------
    t_target            1 UPDATE - update this from source *****************
    t_target            8 DO NOTHING - same in source and target ***********
    t_target            1 DELETE (after update) - not in source, in target *
    t_source            1 UPDATE - put this in target **********************
    t_source            8 DO NOTHING - same in source and target ***********
    t_source            1 INSERT - in source, not in target ****************
    

    So, I need to do an insert, update, and a delete.

    Now I'll build code comparison step by step. I don't show the results every time, but if you run each query yourself can see what is happening.

    -- Step by step build of "refresh by merge" USING ROWIDs
    -- Result: with cardinality hint, can use "BY USER ROWID" and avoid 3d full scan
    -- 1) Full scan of both tables to get data,
    -- identify old / new records and get old ROWID
    select KEY1,VALUE1,
    1 old_cnt, 0 new_cnt, rowid rid from T_TARGET o
    UNION ALL
    SELECT KEY1,VALUE1,
    0 old_cnt, 1 new_cnt, NULL FROM T_SOURCE n
    /
    -- 2) GROUP BY compares records, identical records have old_cnt = new_cnt
    select KEY1,VALUE1,
    sum(old_cnt) old_cnt, sum(new_cnt) new_cnt, max(rid) rid
    FROM (
      select KEY1,VALUE1,
      1 old_cnt, 0 new_cnt, rowid rid from T_TARGET o
      UNION ALL
      SELECT KEY1,VALUE1,
      0 old_cnt, 1 new_cnt, NULL FROM T_SOURCE n
    )
    group by KEY1,VALUE1
    /
    -- 3) Filter out identical records
    select KEY1,VALUE1,
    sum(old_cnt) old_cnt, sum(new_cnt) new_cnt, max(rid) rid
    FROM (
      select KEY1,VALUE1,
      1 old_cnt, 0 new_cnt, rowid rid from T_TARGET o
      UNION ALL
      SELECT KEY1,VALUE1,
      0 old_cnt, 1 new_cnt, NULL FROM T_SOURCE n
    )
    group by KEY1,VALUE1
    having sum(old_cnt) <> sum(new_cnt)
    /
    -- 4) for INSERT, keep NEW; for DELETE, keep OLD;
    -- for UPDATE, keep NEW values and OLD rid
    SELECT /*+ cardinality(1) */ KEY1,VALUE1,
    old_cnt, new_cnt, row_number() OVER(PARTITION BY KEY1 ORDER BY old_cnt) rn
    , max(rid) over(partition by key1) rid
    from (
      select KEY1,VALUE1,
      sum(old_cnt) old_cnt, sum(new_cnt) new_cnt, max(rid) rid
      FROM (
        select KEY1,VALUE1,
        1 old_cnt, 0 new_cnt, rowid rid from T_TARGET o
        UNION ALL
        SELECT KEY1,VALUE1,
        0 old_cnt, 1 new_cnt, NULL FROM T_SOURCE n
      )
      group by KEY1,VALUE1
      having sum(old_cnt) <> sum(new_cnt)
    )
    /
    -- 5) Filter out OLD UPDATE record, not needed
    SELECT KEY1,VALUE1,
    new_cnt, rid
    FROM (
      SELECT /*+ cardinality(1) */ KEY1,VALUE1,
      old_cnt, new_cnt, row_number() OVER(PARTITION BY KEY1 ORDER BY old_cnt) rn
      , max(rid) over(partition by key1) rid
      from (
        select KEY1,VALUE1,
        sum(old_cnt) old_cnt, sum(new_cnt) new_cnt, max(rid) rid
        FROM (
          select KEY1,VALUE1,
          1 old_cnt, 0 new_cnt, rowid rid from T_TARGET o
          UNION ALL
          SELECT KEY1,VALUE1,
          0 old_cnt, 1 new_cnt, NULL FROM T_SOURCE n
        )
        group by KEY1,VALUE1
        having sum(old_cnt) <> sum(new_cnt)
      )
    ) where rn = 1
    /
    
    KEY1     VALUE1                                   NEW_CNT     RID
    1     INSERT - in source, not in target ****************     1
    2     DELETE (after update) - not in source, in target *     0     AAAcDHAAMAAAACtAAA
    3     UPDATE - put this in target **********************     1     AAAcDHAAMAAAACtAAB
    

    Now, here's the real MERGER:

    merge into T_TARGET o
    USING (
      SELECT KEY1,VALUE1,
      new_cnt, rid
      FROM (
        SELECT /*+ cardinality(1) */ KEY1,VALUE1,
        old_cnt, new_cnt, row_number() OVER(PARTITION BY KEY1 ORDER BY old_cnt) rn
        , max(rid) over(partition by key1) rid
        from (
          select KEY1,VALUE1,
          sum(old_cnt) old_cnt, sum(new_cnt) new_cnt, max(rid) rid
          FROM (
            select KEY1,VALUE1,
            1 old_cnt, 0 new_cnt, rowid rid from T_TARGET o
            UNION ALL
            SELECT KEY1,VALUE1,
            0 old_cnt, 1 new_cnt, NULL FROM T_SOURCE n
          )
          group by KEY1,VALUE1
          having sum(old_cnt) <> sum(new_cnt)
        )
      ) where rn = 1
    ) n
    on (o.rowid = n.rid)
    when matched then update set
    VALUE1=n.VALUE1
    DELETE WHERE (n.new_cnt = 0)
    WHEN NOT MATCHED THEN INSERT (
      KEY1,VALUE1
    ) VALUES (
      n.KEY1,n.VALUE1
    )
    /
    

    Published by: stew Ashton on February 7, 2013 20:42

  • Claire VF but Rec on ext monitor?

    Claire VF but Rec on ext monitor?

    Is there a way?

    I know the Red Rec Stby on top. But the declaration of principles want a clear framework.

    Thank you

    Well, to my knowledge, I think that if you want... you can have just the score on the SDI stream light show, and that would be attached to the camera...

    As said, 3 SDI and the VF mimic each other what's on 3 SDI will appear in the VF... But on the side of the VF, you have the 'Display' button that you should be able to turn off all the information in just the VF.

    So with that in place, you could see a clean image in the VF, with SDI 1 is also clean and SDI 3 being the one with the record count.

    Some monitors have a record tally indicator on the monitor itself and which would be active through the menu on the screen itself, but it is something that is variable according to the monitors. And at that time where the camera needs to send a REC flag to trigger such a capability in the monitor. I believe that there is an option in the "REGISTRATION" menu that will allow SDI relaxation to be active.

    Hope that helps a little...

  • Module FPGA unzip problem

    I downloaded the FPGA module in a PXI controller, running XP.  When I tried to unzip it, the unzip operation fails every time.  What is the cause?  Is there some sort of requirement for this unpack?  Hard disk size requirement?

    Thanks for help.  I discovered what the problem was.  I downloaded the FPGA module via the link below.  When I tried to unzip it, I would use the default path.  Apparently, the default path is a space at the end of his 2nd record, counting from the end of the path.  It is a small bug in NOR, but it needs to be fixed.  It is difficult to catch, because I don't expect something like that happening.

    https://lumen.NI.com/nicif/us/evallvuser/content.XHTML

Maybe you are looking for

  • Inadmissible done locking addon - my firefox for Android

    I just installed - https://addons.mozilla.org/en-us/android/addon/lock/Addon in my browser android mobile. I put the password for the same thing. Now, after not only restart the browser - I recharge my laptop also.Although every time I open firefox i

  • Can I update the image of factory restore?

    Hi all I recently had the pleasure to make a 'factory restore' on a M100 and an A300. While the process went smoothly (even if the A300 recovery disk creator should not be put back first to make it work), data that has been restored were, of course,

  • Can anyone recommend a good app for my (free) photo editing girls collage work?

    Hi people, I just got a new iMac for daughter for his help in the edition of the works of the school of photography - can anyone recommend a good software like Adobe photoshop, which is free or much better value if a salary for an APA is more appropr

  • IMAQ ImageToImage 2 VI

    Why doesn't this work?  You want to create a white background and ask an image on top of it.  Simple!  After an hour, I give up! Large: 580 x 440 white fillSmall: 480 x 340Result: White 580 x 440 with no small this picture Copy a small image in the p

  • When I open my computer, I want to go directly to my office.

    When I OPEN MY COMPUTER, IWANT IT TO GO DIREECTLY TO MY OFFICE. HOW DI DO THIS? When I open my computer, I want to go directly to my office. What should I do?