By comparing the two registers of the transaction system

I would like to comment on a matter of data modeling. In our source siebel system, our business users would like a metric that is based on the comparison of two requests for service. Essentially, if the second service request is created 7 or fewer days after the first application service, then it is reported as a reminder. Common element used for this comparison, it is that they both have the same associated assets.

We could easily create the necessary ETL for the creation of a fact of reminder. However, my question is around to give visibility to the relationship between the two. Essentially, the business users would like that the first service request is related to the second and vice versa. How would you recommend creating this relationship in the star schema?

For the relationship, you can for example add a column in the dimension of reminder.
Recalls with the same value (for example the first recall) are related.

If you want to see the reverse callback number in a one-to-one relationship, you can add another column to store.

Concerning
Nico

Published by: gerardnico on 4-apr-2009 01:17

Tags: Business Intelligence

Similar Questions

  • In comparing the two last samples read in

    Hey guys,.

    before the start of my program to test a sample, to check whether its current temperature stable

    So, I read the information of my sample temperature very low frequency (once every 5 seconds) and basically I want to compare the last two samples I have read, and if they are the same allow the next part of the program to start.

    I thought that this could involve using the Labview collector function, but I can't see how I would implement it.

    Any help is very appreciated,

    Sam.

    use a registry node or shift of feedback.

    Write the value to the entry of feedback node and compare to the output

  • When I subtract two numbers DBL and try to compare the result with another DBL, it fails

    I found a curious problem with subtraction and compare numbers DBL in LabVIEW (8.6). Here's how it works:

    1. subtract two numbers DBL such that the result is not incorporated. (Say, 3.2 - 3.1)

    2. compare the result with a constant/control that is on the result of the subtraction (in the example, 0.1)

    3 see the output of the comparison.

    If the result of the subtraction is an integer, the Boolean result is (as expected). If the result is not complete, the comparison fails.

    (Now, if I simply compare two floating point numbers, it works, so the issue is not with the node comparison itself, but with the data that is entered to the node). Can someone understand why this happens? It's unexpected, it's a pretty serious bug.

    It is provided with all programming languages. Numbers do not have an exact binary floating-point representation. This has been discussed endlessly. Never use the equal function with floats. You can use the function in the range and force.

  • How to compare the content of two files so I can delete duplicate records

    I'm trying to clean up several subfolders with duplicates without looking at the details of each record.  Is it possible in Windows XP to compare the content of two files whether they are an exact replica.

    Hi rav42010,

    Follow the steps in the article.

    Description of the tool in Windows XP disk cleanup

    http://support.Microsoft.com/kb/310312

    You can also use third-party app to perform the task using your favorite search engine.

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • How to compare the content of two Wordpad / documents notebook without reading them line by line?

    How to compare the content of two Wordpad / documents notebook without reading them line by line?

    Hello

    Without this feature is included in the operating system.

    However, you can use your favorite search engine to look for software that needs to perform these tasks.

    WARNING of THIRD PARTY SOFTWARE: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information helps.

  • Is it possible to compare the contents of two folders

    Someone copied one of our folders with subfolders on the server from one place to the other. Now, some people use the old location and the new location. Is it possible to compare the two, to find the difference and merge them into a file without losing any information?

    There are third party tools that can automate a large part of it, but you still need to judge what part gets merged from which file.  One of those tools that I know is "Beyond Compare"

    Beyond Compare: <> http://www.scootersoftware.com/index.php >

    Not free, but in my humble OPINION is worth the price.

    HTH,

    JW

  • Compare the content of two equal nested tables

    I'm working on a black box test where I compare the contents of two structurally equal tables before and after executing a script of some. My two tables, MDQ_OLD and MDQ_NEW, are filled with the data in two separate operations.

    The two tables, I'll compare are nested, as you can see in the CREATE TABLE scripts below.

    I tried to use the less-operator sign, but without success.

    I also tried to select data in a type that is % ROWTYPE to my nested tables, but it does not work as well (see the below script in this post).

    Can you please help me on this problem on how to compare the content of two nested tables?

    Run the scripts below to reproduce the problem and be sure to update this post if more information is required.

    -The scripts below-

    Select * from version of v$.

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

    PL/SQL Release 11.2.0.4.0 - Production

    CORE Production 11.2.0.4.0

    AMT for Linux: Version 11.2.0.4.0 - Production

    NLSRTL Version 11.2.0.4.0 - Production

    -First of all, I create my types

    CREATE OR REPLACE TYPE FORCE AS OBJECT MDQ_DETAIL (NUMBER OF MDQ_DETAIL_ID, MDQ_DETAIL_DESC VARCHAR2 (100));

    CREATE OR REPLACE TYPE T_MDQ_DETAIL AS TABLE MDQ_DETAIL;

    -Note that this type contains the table T_MDQ_DETAIL type:

    CREATE OR REPLACE TYPE MDQ_PARENT FORCE AS OBJECT (NUMBER MDQ_ID, MDQ_DETAILS T_MDQ_DETAIL);

    - Then I create two equal nested tables

    CREATE THE NESTED TABLE AS MDQ_PR_OLD STORE MDQ_DETAILS MDQ_PARENT MDQ_OLD TABLE.

    CREATE THE NESTED TABLE AS MDQ_PR_NEW STORE MDQ_DETAILS MDQ_PARENT MDQ_NEW TABLE.

    -Insert test data in the nested tables

    Insert into MDQ_OLD (MDQ_ID, MDQ_DETAILS) Values (1, T_MDQ_DETAIL (MDQ_DETAIL(1,'desc1')));

    Insert into MDQ_NEW (MDQ_ID, MDQ_DETAILS) Values (2, T_MDQ_DETAIL (MDQ_DETAIL(1,'desc1')));

    -Try to use the negative operator to compare the contents of the trailer of the nested tables, but it gives this error:

    -ORA-00932: inconsistent data types: expected - got DISPATCH. T_MDQ_DETAIL

    Select * from MDQ_NEW

    less

    Select * from MDQ_OLD;

    -Try to select in a ROWTYPE, but it fails

    declare

    myTypeOld MDQ_OLD % ROWTYPE;

    myTypeNew MDQ_New % ROWTYPE;

    myTypeDiff MDQ_New % ROWTYPE;

    Start

    -Select gives: PLS-00497: do not mix between row and several rows (in BULK) list

    Select * bulk collect into mdq_old myTypeOld;

    Select * bulk collect into mdq_new myTypeNew;

    -Need a 'compare the function of membership card' on the types of multiset except to work, but as far as I

    -I'm not able to bulk collect into myTypeOld or myTypeNew, this won't help out me.

    myTypeDiff: = multiset myTypeOld except myTypeNew.

    end;

    -Cleaning:

    drop table MDQ_OLD;

    drop table MDQ_NEW;

    type of projection MDQ_PARENT;

    type of projection T_MDQ_DETAIL;

    type of projection MDQ_DETAIL;

    > queries you provided intercepts not who.

    You asked how to compare the content of nested tables.

    I knew that you didn't ask for what you actually want, that's why I asked you to specify the comparison more in detail.

    > Do you have a query that grabs this difference as well?

    SELECT o.mdq_id, od.*
    OF mdq_old o, TABLE (o.mdq_details) od
    LESS
    SELECT n.mdq_id, nd.*
    OF mdq_new n, TABLE (n.mdq_details) nd;

    > Also, if possible, do you have a sample of a statement to COLLECT LOOSE, please?

    Actually, you raise an interesting point on using % ROWTYPE, in my view, that should be. This make...

    DECLARE
    TYPE rt_mdq_new () IS RENDERING
    mdq_id NUMBER,
    mdq_details t_mdq_detail);
         
    TYPE tt_mdq_new IS TABLE OF THE rt_mdq_new;
      
    t_mdq_new tt_mdq_new;
    BEGIN
    SELECT mdq_id, mdq_details
    LOOSE COLLECTION t_mdq_new
    OF mdq_new min.;
    END;
    /

    DECLARE
    CURSOR c_mdq_new
    IS
    SELECT mn.*
    OF mdq_new min.;
         
    TYPE tt_mdq_new IS TABLE OF c_mdq_new % ROWTYPE;
      
    t_mdq_new tt_mdq_new;
    BEGIN
    OPEN c_mdq_new.
    Get the c_mdq_new COLLECT in BULK IN t_mdq_new;
    CLOSE C_mdq_new;
    END;
    /

  • How to compare the DOF of the OWNER. Table_name two DB in a single query?

    Hello community,

    I am trying to compare the DDL from a table that is located in two databases with the same name and the same pattern:

    select my_files.schema_name || '.' || my_files.table_name as table_name
         , case ( select dbms_lob.compare( dbms_metadata.get_ddl(one.object_type, one.object_name, one.owner)
                                         , dbms_metadata.get_ddl(two.object_type, two.object_name, two.owner)
                                         )
                    from all_objects  one
                       , all_objects@db_link  two
                   where one.object_type = 'TABLE'
                     and one.owner = my_files.schema_name
                     and one.object_name = my_files.table_name
                     and two.object_type = one.object_type
                     and two.owner = one.owner
                     and two.object_name = one.object_name
                )
             when 0 then 'Y'
             else 'N'
           end as ddl_equal_flag
      from my_files;
    

    When I run the query above in SQL Developer, I get results like:

    Table-name DDL_EQUAL_FLAG
    MY_SCHEMA. TABLE_1THERE
    MY_SCHEMA. TABLE_2THERE
    MY_SCHEMA. TABLE_3THERE
    etc.etc.

    But I wonder if it really works... I suspect DBMS_METADATA. GET_DDL returns the DDL of the database where I am connected, regardless of the database link, I used. Is this correct?

    And if so, is there another approach that gives me the expected results?

    Your help is very appreciated!

    Best regards, Yvo

    I would not use DBMS_METADATA, but the DBA_TAB_COLUMNS query directly.

  • I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?

    I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?

    Hi sindres79946597,

    Open Acrobat Reader DC, navigate to the Edit-> Preferences-> General-> uncheck "Open Documents in the new tab in the same window.

    Now, reboot your system, when you open multiple PDFs that all will open in a new window so that you can easily compare.

    Kind regards
    Nicos

  • By comparing the areas of vector/waveform between two clips

    Is there a way to bring the scopes for two separate clips to compare as you can do it in first?  I use the 2 - up function often to visually compare the clips, but it just does not cut it for some corrections.

    You cannot spread over more than one clip in Sg, this is something that gets once asked from time to time and would certainly be more useful... Please file a feature request for this...

    /Feature bug report form requires Adobe...

    https://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform

    Other than that, suggestion of dummergold to make a screenshot of the staves on a clip & comparing to "live" on the other hand, the expanses of Sg is the only solution. In Windows, there is the practice "capture tool" in the Programs/Accessories folder. I put that on my taskbar so I can access them at any time in any program. Then only, drag a square diagonally on the part of the screen that you want to "follow" and it's a jpg/png for you. I don't know that there not on the side of the things Mac.

    Neil

  • How I would compare if two indexes are the same?

    I like to compare if two indexes of two users are the same. Is it possible to to that. I need similer to query below:

    to select (2 * (select count (*) from (select * of XPKTBL_A CROSS, select * from XPKTBL_A)) - (select count (*) in XPKTBL_A) - (select count (*) in XPKTBL_A)) WHEN 0 THEN "Index are the same" ELSE 'Indices are different' END 'Result' from DUAL;

    UserA:

    create table TBL_A (FIELD_A1 number not null,

    FIELD_A2 varchar2 (50).

    Date of FIELD_A3,

    FIELD_A4 number (5.2) default 0,

    FIELD_A5 varchar2 (10) not null

    );

    create a unique index XPKTBL_A on TBL_A (FIELD_A1);

    UserB:

    create table TBL_A (FIELD_A1 number not null,

    FIELD_A2 varchar2 (20).

    FIELD_A4 number (5.2) not null,

    FIELD_A5 varchar2 (10),

    FIELD_A6 number (2) not null

    );

    create a unique index XPKTBL_A on TBL_A (FIELD_A1, FIELD_A6);

    Thanks for the reply Lalit and sorry for the late reply... I got my answer already.

  • How compared the content of the two cards

    Hello

    How can I compare the contents of two cards that look like:

    Private map < String, < String, Enum > map > expected;

    Private map < String, < String, Enum > map > real;

    BR,

    Mike

    Actual.Equals (expected);

  • Comparing the sum of the two tables and correct by difference of amount in its second t

    Hello guys,.

    I have a very difficult task that I can't get my head around.
    The sample data looks like this:

    Master table
    Request - booking - debit - credit - MasterAmout
    1------------1----------------D---------------------------------15.3
    1------------2----------------D---------------------------------480.6
    1------------3------------------------------C-------------------496.8
    ------------------------------------------- 0.9


    The slave table
    Demande---reservation---debit---credit---slaveamout---slavecorrection
    1------------1------------D------------------------------------15.3---------------14.5
    1------------2------------D------------------------------------480.6-------------480.6
    1------------3-----------------------------C-------------------496---------------496
    -------------------------------------------0.1--------------------------------------0.9


    The reservation have a total amount of 0.1, but must be corrected to 0.9 because the main table has 0.9.

    Reservation 1 requires a correction so the slave table also has a total of 0.9 (business rule is, only corrections on the first booking). So we have
    to change the amount of 15.3 to 14.5. I plan my SQL like this:

    1 reservations sum of two tables for each claim. Compare the two for each individual claim.
    2. If Captain sum the amount shows a difference between master / slave
    2.1 select top 1 table reservation slave for the specific claim and increase/decrease by the difference of these two amounts.

    Who is?

    Hello

    Use MERGE to actually do the UPDATE.
    The ROW_NUMBER analytic function to identify the first booking in slave (unless you can count on which the reservation = 1).

    MERGE INTO     slave     dst
    USING     (
         WITH     master_summary     AS
         (
              SELECT       claim
              ,       SUM ( master_ampount * CASE
                                       WHEN  debit  = 'D'  THEN -1
                                       WHEN  credit = 'C'  THEN  1
                                   END
                         )     AS balance
              FROM       master
              GROUP BY  claim
         )
         SELECT     s.claim
         ,     s.booking
         ,     SUM ( s.slave_amount * CASE
                                WHEN  s.debit  = 'D'  THEN -1
                                WHEN  s.credit = 'C'  THEN  1
                               END
                  ) OVER (PARTITION BY  claim) - m.balance     AS diff
         ,     ROW_NUMBER () OVER ( PARTITION BY  claim
                             ORDER BY        booking
                           )     AS r_num
         FROM     master_summary     m
         JOIN     slave          s  ON     m.claim     = s.claim
         )          src
    ON     (     src.claim     = dst.claim
         AND     src.r_num     = 1
         )
    WHEN MATCHED THEN UPDATE
    SET     dst.debit      = CASE
                        WHEN src.diff      <  0 THEN 'D'
                                       ELSE NULL
                     END
    ,     dst.credit      = CASE
                        WHEN src.diff      <  0 THEN NULL
                                       ELSE 'C'
                     END
    ,     dst.slaveamount = ABS (src.diff)
    ;
    

    If you would care to CREATE TABLE and INSERT statements for the sample data (showing the two tables, as they exist before the DML) then I could test this.

    The design of history seems very uncomfortable. Instead of the debit and credit columns, it would be much simpler to have positive and negative amounts. Is it really worth now both not corrected and corrected the amounts in the table on the slave, especially if you keep only versions corrected debit and credit columns?

  • By comparing the unique patches for two ORACLE_HOMEs

    DB version: 10.2.0.4
    Platform: AIX

    On a server, we have a 10.2.0.4.5 (PSU5) ORACLE_HOME installed with a few one-off additional fixes. Asked me to install a replica of the HOUSE even on server B.

    Since I'm lazy, I installed 10.2.0.4.10 (PSU 10) thinking that all exceptional items patches at least until PSU5 will be included in the POWER 10 block.
    But when I ran lsinventory on a server, I can see several one-off fixes which is not included in the power supply 10.

    Since there are several missing patches of point, is there a way I can quickly compare the one-off tasks that do not appear in the ORACLE_HOME to Server B (comparing to a server)?

    Not 100% of the unique patches are merged into the power supply.
    You can run the following on the two sides for a comparison:

    $ORACLE_HOME/OPatch/opatch lsinventory -bugs_fixed
    

    Or, for example, you could get all the PSU ID by running:

    $ORACLE_HOME/OPatch/opatch lsinventory -bugs_fixed|grep PSU
    

    Then run the cmd, excluding the PSU for the unique patches installed on the binary ORACLE_HOME on a server (that is, the 12419397 being PSU5):

    $ORACLE_HOME/OPatch/opatch lsinventory -bugs_fixed|grep -v 12419397|grep -v "^ "
    

    Nicolas.

    Published by: Gasparotto N January 16, 2012 17:30

  • How can I compare the differences between two files After Effects?

    I have a major problem.  I was working on special effects for a film.  In After Effects, when I change siggificant, I often have to register under and create a new name so I can go back to the old work if necessary.  It comes in a case, I have come back from earlier works.  If I use these two files After Effects allows you to create multiple clips of effects.  And I do not remember just where you look at it, it is better.  Does anyone know a good way to compare the differences between the files?

    One thing to keep this conversation on the right way: I know that I did a stupid thing.  I've never done this before so can we please not spend a lot of time on how to avoid this problem and stick to how we solve this problem?

    If you encounter difficulties to identify differences in the old and new versions, you can use this procedure:

    To avoid confusion, I'll call your former company and your most recent compositions CompB comps.

    CompA drag "New Comp" icon in the project window.  This will create a new temporary layout that contains the nested CompA.

    Drag in your new COMP CompB temporary ensure it aligns image for image with CompA.

    Place the top layer (CompB) difference.

    Now, when you play through the comp, you'll see differences in color at a time where the comparison and CompB are not identical.

Maybe you are looking for