How to compare two Universes of two different Datamarts?

Post Author: Shrikant
CA Forum: Integrated Solutions
Hi.. all I want to compare two universes of different data mart to check the table structure. Can anybody please tell me how to compare two Universes of different Datamarts?How i can achive this usinig BusinessObjects Enterprise XI Release 2 ??
Thanks in advance.

/*does record 1 have friend*/
WITH t AS
(SELECT 1 AS Id, 'a' AS NAME, 'type1' AS Col
  FROM Dual
  UNION ALL
  SELECT 2 AS Id, 'a' AS NAME, 'type1' AS Col
  FROM Dual
  UNION ALL
  SELECT 3 AS Id, 'a' AS NAME, 'type2' AS Col FROM Dual)
SELECT count(*) as YesNo
FROM t T1
WHERE T1.Id = 1
      AND (T1.Name, T1.Col) IN (SELECT T2.Name, T2.Col FROM T t2 where t2.ID != T1.Id);
     1
/*does record 3 have friend*/
WITH t AS
(SELECT 1 AS Id, 'a' AS NAME, 'type1' AS Col
  FROM Dual
  UNION ALL
  SELECT 2 AS Id, 'a' AS NAME, 'type1' AS Col
  FROM Dual
  UNION ALL
  SELECT 3 AS Id, 'a' AS NAME, 'type2' AS Col FROM Dual)
SELECT count(*) as YesNo
FROM t T1
WHERE T1.Id = 3
   AND (T1.Name, T1.Col) IN (SELECT T2.Name, T2.Col FROM T t2 where t2.ID != T1.Id);
     0
*/

Similar Messages

  • How to compare the contents of two different tables

    hello. can somebody give me an idean on how to compare the contents of two different tables in mysql?
    example, i have a table named Main List and a table named New List.
    The contents of the New List should be compared to the contents of the
    Main List, to check if they are equal. I don't have any idea how to manipulate
    this data. Hoping for your help. Thanks.

    it is better to comapre it using java.. try get the resultset first and store that in collections then comapre the two collections

  • How to compare the programs in two different systems

    Hi,
    I have two systems say A & B and i have the program say 'Z_TESTPROG'.
    How to compare the program in two different systems.
    Regards,
    Venkat

    Hi,
    Check the version in Utilities -> version -> version management in both servers is one option.
    Another one is using SE39 transaction.
    Regards
    Manasa

  • How to compare the contents of two XML documents

    Hi all,
    I was trying to compare the contents of two xml documents, they are both validate for the same XML Schema. i was using the xmlunit to do this. but some how it doesn't work like what i have expected. for example:
    1.xml : <test><item>2</item><item>1</item></test>
    2.xml: <test><item>3</item><item>2</item><item>1</item></test>
    the result from XMLUnit is this two xmls are different, but it compares <item>2</item> with <item>3</item>, which i cannot find out where the real diiffs are.
    does anybody know how i can do this correct?
    best regards,
    tina

    I faced a similar problem in one of my projects and hence wrote my own comparator. Most comparators like ExamXML etc show XML as different if the nodes under a parent node occur in different seqeunce or a set of repeated nodes occur in different sequence. The comparator that I wrote gives you the flexibility to configure how to identify a node from a set of repeated nodes and is able to compare them successfully if they occur in any order. You can view the sample output at http://geocities.com/dheerendra_itbhu/TipsFromDheeru.html
    and contact me in case you need the source code.

  • How to compare pixel values of two different grayscale images...

    I have two different grayscale images both of much different sizes. One is 46x20 pixels and the other is 2592x1944 pixels. I'm having trouble finding a way to "scan" the smaller image through the larger one so that comparisons between the pixel values can be made. Basically I'm trying to see if anything matches the smaller image in the big image semi-closely. I can access the pixel values of each image but I can't figure out an algorithm to perform the scan. Any help at all would be very much appreciated! Thanks.

    Hi
    recipe:
    1.
    Find all the values for all the pixels in the small image. Some might be similar. Put all those values that are useful into a List called comparisonList.
    2.
    For each scanline in the large image
    For each pixel in the scanline
    is this pixel the same value as a pixel in the comparisonList?
    if so do something
    is the scanline finished?
    if not next pixel
    loop to next scanline
    where scanline is a horizontal line in the big picture.
    my 2c
    hope helps

  • How to Compare pdf contents of two pdfs?

    Hi,
    Can anyone guide me how can i do content comparision of pdf at run time. I am able to compare documets using acrobat and get the results. But I have a scenario where i need to compare two documents at runtime.
    Can assembler compare two documents and Highlight the contents? or
    Is there any JavaScript API which can perform pdf content comparision?
    Please help me on this?
    Regards
    Sunil

    Currently I am having xfa pdfs and i will be able to transform to any version (static,pdf etc) to get the comparision result.

  • How to compare record count of two tables?

    Hi,
    i am in need of simple sql script where i can compare two table record count.
    i have something like below:
    (select count(*) from table1) minus (select count(*) from table2)
    now the problem is if the table1 count greater then table2 count the output is fine.
    If the table2 record count is more then i am getting zero as the output.
    how can i get the difference in two tables record count?
    Thanks a lot in advance.
    --Raman.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Doing a MINUS between the counts does not yield the diff.
    e.g. if table A has 100 records and table B has 70 records then,
    SELECT count(*) FROM A
    minus
    SELECT count(*) from B
    will give 100 and not 30.
    Try this:
    SELECT (
    CASE WHEN ((select count(*) cnt from A) - (select count(*) cnt from B)) <0
    THEN ((select count(*) cnt from A) - (select count(*) cnt from B))* -1
    ELSE ((select count(*) cnt from A) - (select count(*) cnt from B)) END) Difference
    FROM dualor this is simpler
    SELECT abs(((select count(*) cnt from A) - (select count(*) cnt from B))) difference FROM dualEdited by: Caitanya on Jan 9, 2009 7:12 AM
    Applied abs function after seeing BluShadow's post :)

  • How to compare the data of two identical tables

    My requirement is to compare two identical tables(eg., t1 and t2) and display the column, which value got changed, old value and its new value.
    For eg:
    T1:
    StudId C1 C2 C3
    1 40 50 90
    2 30 80 100
    3 20 10 11
    T2:
    StudId C1 C2 C3
    1 100 60 90
    2 30 90 100
    3 20 60 80
    output should be:
    StudId Column prevvalue changedvalue
    1 C1 40 100
    1 C2 50 60
    2 C2 80 90
    3 C2 10 60
    3 C3 11 80
    Please help me to how to achieve using oracle pl/sql. It is bit urgent

    No need of PL/SQL, you can do it in SQL as shown
    SQL> create table t1
      2  (
      3  studentId number,
      4  c1 number,
      5  c2 number,
      6  c3 number
      7  );
    Table created
    SQL> insert into t1 values (1,40,50,90);
    1 row inserted
    SQL> insert into t1 values (2,30,80,100);
    1 row inserted
    SQL> insert into t1 values (3,20,10,11);
    1 row inserted
    SQL> commit;
    Commit complete
    SQL> create table t2
      2  (
      3  studentId number,
      4  c1 number,
      5  c2 number,
      6  c3 number
      7  );
    Table created
    SQL> insert into t2 values (1,100,60,90);
    1 row inserted
    SQL> insert into t2 values (2,30,90,100);
    1 row inserted
    SQL> insert into t2 values (3,20,60,80);
    1 row inserted
    SQL> commit;
    Commit complete
    SQL> select * from t1;
    STUDENTID         C1         C2         C3
             1         40         50         90
             2         30         80        100
             3         20         10         11
    SQL> select * from t2;
    STUDENTID         C1         C2         C3
             1        100         60         90
             2         30         90        100
             3         20         60         80
    SQL> select
      2  t1.studentId StudId,'c1' ColumnName,t1.c1 prevvalue,t2.c1 changedvalue
      3  from t1,t2
      4  where t1.studentId = t2.studentId and
      5  t1.c1 <> t2.c1
      6  union
      7  select
      8  t1.studentId,'c2',t1.c2,t2.c2
      9  from t1,t2
    10  where t1.studentId = t2.studentId and
    11  t1.c2 <> t2.c2
    12  union
    13  select
    14  t1.studentId,'c3',t1.c3,t2.c3
    15  from t1,t2
    16  where t1.studentId = t2.studentId and
    17  t1.c3 <> t2.c3
    18  ;
        STUDID COLUMNNAME  PREVVALUE CHANGEDVALUE
             1 c1                 40          100
             1 c2                 50           60
             2 c2                 80           90
             3 c2                 10           60
             3 c3                 11           80
    SQL>

  • How to compare 2 Strings that have different content in them..

    I have 2 Strings:
    String st1 = "1,2,3,4,6,7,9,10,11";
    String st2 = "4,5,10,11";
    I want to compare these 2 Strings where the result should be. Basically, any item from st2 is in st1: String res = "4,10,11";
    How can I do this in an efficient way?
    I was thinking of using StringTokenizer on st2 and compare each item to st1.... any help is appreciated. Thanks.

    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.StringTokenizer;
    * @author BADRINARAYAN
    public class stringTok {
    public static void main(String[] ar)
        String st1 = "1,2,3,4,6,7,9,10,11";
        String st2 = "4,5,10,11";
        TreeSet<String> value=new TreeSet<String>();
        ArrayList<String> set1=new ArrayList<String>();
        ArrayList<String> set2=new ArrayList<String>();
        StringTokenizer s1=new StringTokenizer(st1,",");
        StringTokenizer s2=new StringTokenizer(st2,",");
        while(s1.hasMoreTokens())
            set1.add(s1.nextToken());
        while(s2.hasMoreTokens())
            set2.add(s2.nextToken());
        for(Iterator it1=set1.iterator();it1.hasNext();)
            String temp1=it1.next().toString();
            for(Iterator it2=set2.iterator();it2.hasNext();)
                if(temp1.equals(it2.next().toString()))
                    value.add(temp1);
        System.out.println(value);
    }Edited by: badri.m on Feb 15, 2010 3:25 AM

  • How come 'compare pdf' marks images as different even though I find no difference?

    we are printing a brochure in 4 different languages and change the plate for black only (the text is black), the rest remains the same for all four versions. In oder to make sure the images are axactly the same in all four files I tried 'compare pdf' which then marks images as different although I don't find any difference, when I check the Indesign files. Where does this come from and is there any other way of checking, whether images are exactly the same if you print different versions together and only change the plate for black? For some reasons the printer does not want to put the black of the text on a different plate than the black of the images.

    we are printing a brochure in 4 different languages and change the plate for black only (the text is black), the rest remains the same for all four versions. In oder to make sure the images are axactly the same in all four files I tried 'compare pdf' which then marks images as different although I don't find any difference, when I check the Indesign files. Where does this come from and is there any other way of checking, whether images are exactly the same if you print different versions together and only change the plate for black? For some reasons the printer does not want to put the black of the text on a different plate than the black of the images.

  • How to compare 1 function in 2 different progs in debugging

    I'm working with ECC6.0 and I was wondering if there is a neat way to compare a function with variable values in debugging with another function in debugging.
    I have build an z programm which uses the function CV100_DOCUMENT_SEARCH
    I give or at least I try to give alle the values in the same manner as this function is working in tcode CV04N
    somehow I still don't get any results back in my zprogramm while all the variables are the same . is there perhaps an easy way to compare the variable and table values from CV04N with the variables and table values from my z programm ??
    I'm getting nuts checking all the variables from the structures between the 2 programms by clicking on every one and scrolling down all the time
    ofcourse points for the one who prevents me from getting rsi on these kind of things

    yep I know that option for downloading to excel but still when you have multiple structures or tables then it's still a lot of work.
    it would be handy if you could just set all the data in debugging for a specific funtion to testdata for that function. and also from the other program and let sap compare both of the datasets perhaps an idea for the next release ??
    oh and I solved the problem with the function above
    in the function
      CALL FUNCTION 'CV100_DOCUMENT_SEARCH'
        EXPORTING
          max_rows              = restrict
    the global variable restrict is used inside the function (instead of max_rows) which caused it to return no results.
    thank god it's almost weekend
    kind regards
    arthur

  • How to compare transport requests found in different environments

    Hello gurus,
    I need to know what are the transport requests found in my development environment but which are not found in my Production environement. In other words, I want to have a list of all transport requests that have not been transported yet to the production .
    I intend to select data from E070 for the 2 environments and compare using loops and reads.
    I would like to know if there is a function module that does the same job?
    thanks in advance.
    Parvez

    Hi soobhany parvez .,
                   Please post the report u developed for knowing the status of Transport Requests across systems, i will be helpful for me and others.
    Thanks&regards.,
    S.Sivakumar

  • How to compare data between two worksheet in Excel for applescript

    Hi All,
    How to compare the data from two different worksheet in Excel and set the value into one worksheet according to the same name? Here is the example. Worksheet 1 & 2 current we have, the final worksheet is the result we want and the value can be input in worksheet 1. Much appreciate if you can help on it.
    Worksheet 1:
    Name          Number
    Leo                 25
    Jame               55
    Leo                 30
    Jame               60
    Tim                 44
    Tomas             77
    Lyne                35
    Tonny              66
    Jame               22
    Game              88
    Worksheet  2:
    Name          Number  2
    Leo                60
    Jame             150
    Tim                66
    Tomas            88
    Lyne               55
    Tonny            99
    Game             111
    Rusult in Worksheet 1
    Name          Number        Total Number per name in Worksheet 1         Number 2 in Worksheet 2
    Leo                 25                          55                                                        60
    Jame               55                         137                                                       150
    Leo                 30                           55                                                        60
    Jame               60                         137                                                       150
    Tim                 44                          44                                                         66
    Tomas             77                          77                                                        88
    Lyne                35                          35                                                        55
    Tonny              66                          66                                                        99
    Jame               22                         137                                                       150
    Game              88                          88                                                        111

    I'd probably use a database for this, if there's any quantity of data involved here.  Import from Excel into {SQLite, MySQL, PostgreSQL, FileMaker, maybe Core Data}, or pick your preferred key-value store, keep your data in the database, then export or (via ODBC/JDBC) then access live database data from within the spreadsheets.
    Alternatively and if you're looking at small quantities of data (say, less than 10,000 entries, or less than a thousand depending on the language), then just use whatever passes for a key-value store in your preferred scripting language {Python, bash, Lua, or maybe php, AppleScript or Java} and use that.  Export Excel to CSV {gag} or XML, then load that into Python and process as needed, then write out CSV {gag} or XML.
    AppleScript is a scripting language for GUI applications, and also useful for processing events.  If you're not doing that sort of stuff, then there can be other choices, and other choices can often have extensive frameworks and libraries for common tasks.
    Sooner or later, most everybody runs into a wall when using a spreadsheet...  Various folks have encountered those limits and have migrated from spreadsheets to FileMaker databases, and now use a database as the central store for their operations — and that's the other issue that can arise with spreadsheets... Where's the canonical data?

  • How to compare two Universes ?

    Post Author: Shrikant
    CA Forum: Administration
    Hi.. all I want to compare two universes of different data mart to check the table structure. Can anybody please tell me how to compare two Universes of different Datamarts?How i can achive this usinig BusinessObjects Enterprise XI Release 2 ??
    Thanks in advance.
    Shrikant

    Create
    table tab1(ID
    int ,DE char(10))
    Create
    table tab2(ID
    int ,DE char(10))
    Insert
    into tab1 Values
    (1,'aaa')
    Insert
    into tab1  Values
    (2,'bbb')
    Insert
    into tab1 Values(3,'ccc')
    Insert
    into tab1 Values(4,'dfe')
    Insert
    into tab2 Values
    (1,'aaa')
    Insert
    into tab2  Values
    (2,'xx')
    Insert
    into tab2 Values(3,'ccc')
    Insert
    into tab2 Values(6,'wdr')
    SELECT 
    tab1.ID,tab2.ID
    As T2 from tab1
    FULL
    join tab2 on tab1.ID
    = tab2.ID  
    WHERE
    BINARY_CHECKSUM(tab1.ID,tab1.DE)
    <> BINARY_CHECKSUM(tab2.ID,tab2.DE)
    OR tab1.ID
    IS NULL
    OR 
    tab2.ID IS
    NULL
    ID column considered as a primary Key
    Apart from different record,Above query populate missing record in both tables.
    Result Set
    ID ID 
    2  2
    4 NULL
    NULL 6
    ganeshk

  • How to compare two different environments

    Can any please tell me how to compare two environments like DEVL to TEST?
    I know how to compare a project(like DEVL to TEST) but i want to see all the changes in all the objects between two different environments.
    Please help me.
    Thank you.

    That is really a good piece of information.
    Does it really matter where we are comparing from?
    i will explain,let us say we have DEV and TST environment.
    let us say both has same project name and the same number of objects but inside the object they may be different(like number of fields in the same record in both environments).
    Now we want to have a compare report between those environments.
    We can do in two different ways, right?
    (1. source DEV, Target TST)
    (2. source TST, Target DEV)
    will the result get changed in both the cases?
    (except like following)
    (first case souce target)
    ( absent *changed)
    (second case would be like following)
    ( souce target)
    ( *changed  absent)
    (but i gess the number of rows in both the cases does not get changed)
    let me know if you can not understand the question. sorry about the confusing explanation

Maybe you are looking for