Query comparing two version

Hi ,
I have a small query comparing two vesions in java . my version like
*1st one Version Name : swv-ora-tes-4.5*
*2nd one Version Name :swv-ora-tes-4.6*
How can we compare this version and 2nd one is latest version
Regards
Pattanaik

Here's something you would have found by yourself in about 15 seconds if you'd bothered to do any work:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#compareTo(java.lang.String)

Similar Messages

  • How to compare two excel reports and find the difference in BI Publisher

    Hi All,
    I have a requirement that needs to compare two excel reports in XML Publisher 5.6.2. or BI publisher 10.1.3.4
    If anybody has an idea about this pls help us.
    Thanks,

    Since our customer wants to have this comparison only with BI reports....here is the scenario how the comparison should be..
    Now,we have a parameters called Customer name and version id. Version id list will be refreshed based on the customer selection.
    User can generate the report based on the selected customer name and version id. These data are fetch from the oracle database and we are using Data Template in the BI Publisher.
    Now the requirement is customer wants to compare two version id data. for example, v1.2 and v1.3
    Now they wanna to see both the reports while generating in the same work sheet, like, v1.2report should display in the left side and the v1.3report has to display in the right hand side of the same work sheet.
    Now...If there is any addition happened in v1.3 report,then that cell/data should display as a green color in that report.
    If any deletion happened in v1.3report then that should be in the red color.
    If any modification happened in v1.3 then that should be in the yellow color.
    If there is no difference then that should display as it is.
    the thing is that, the both the reports (v1.2 and v1.3)should display side by side in the same worksheet with the format and everything........only the difference should be highlighted.
    Template is same for both the reports..
    To display the data for both versions i think i can generate the template side by side of both in the same worksheet.
    Now, My question is how to find the difference of data in the RTF Template for both the versions
    Can anybody assist me?
    Thanks,
    Edited by: user753355 on Jun 9, 2009 12:03 AM
    Edited by: user753355 on Jun 9, 2009 12:06 AM
    Edited by: user753355 on Jun 9, 2009 12:16 AM
    Edited by: user753355 on Jun 10, 2009 3:59 AM

  • Comparing document versions in Reader?

    Can I compare two versions of the same pdf document and see the changes between versions in Reader?

    Not in Reader, no.

  • Comparing two XML Schemas

    Hi All,
    I want to compare two versions of the same XML Schema. I am working with Oracle 10g XML DB. I think we have something in 11g but I am constrainted to 10g.
    Requirement:
    1. I start afresh and register the XML Schema and also insert XML documents compliant to that schema in my XMLTYPE table.
    2. Now after some time, I need to add a new element. So, I modify the XML Schema and write the XSLT for its addition to XML documents and do a CopyEvolve(). Let us assume, I have a script for this.
    3. Now if accidentally, I rerun the script, I may run into errors as the element is already there.
    So, I thought I should find the differences between the new version of the schema and the old version and if there are differences apply the XSLT and also evolve the schema. How do we do this?
    Also, Can we generate the XSLT automatically based on the two versions of XML Schema?
    Thanks
    Ramesh

    XML Schemas are just XML documents.
    Compare the XML Schemas using the XDK's XMLDiff class and generate the XSLT from the differences.
    http://www.devx.com/Java/Article/30943

  • Utility to Compare two universes

    Is there any utility available for comparing two universes?
    If not , Can anybody please tell me the best way to compare two versions of a universe and tracking the change
    BO version : BOXI 3.1 SP4
    Thanks

    Hi Saurav,
    This link i'll help you
    Dave’s Adventures in Business Intelligence » Dagira Universe Compare Tool
    How to diff universes using Universe Documenter
    Regards
    Mustafa

  • Compare two characteristics in Query

    Hi Experts,
    I have to compare two characteristics in Query fields like (A)Approved Level of Job(contain values like 01,02,03,04) and (B)Required Level of Job(contain values like 01,02,03,04).
    Now I have to do these calculations
    If A>B =1
    If A<B =0
    And also in other case
    If A=b  then value 1
    Of A =/= B then value 0
    Please let me know how I can achieve this.
    These values could be in A,B,C,D instead of 01,02,03,04 then in that case how I will calculate these comparison.
    Thanks
    Take care
    Vishal sharma

    Hi,
    i need the solution in this format on the comparison two characteristics in Query:
    0=false
    1=true
    Approved Level of Job(A)     Required Level of Job(B)      A=B         A not equal  B     A>B               A<B
         1                                                         3                                       0                         1                      0                 1
         4                                                         2                                       0                         1                      1                 0
         3                                                         3                                        1                         0                      1                 1
         5                                                         4                                       0                         1                      1                 0
         1                                                         2                                       1                         1                      0                 1
    count(A):5                        Count(B)5                                 sum 2                 sum 4           sum 3         sum 3
    so my CKF will be
    A>B/5 means 3/5=60%
    I also need to know how i am going to count A and B too.
    thanks
    take care
    vishal sharma

  • When I OCR two versions of the same document and then compare th documents in Acrobat Pro XI, I usually get the message that there are no changes to mark.  However, I know there a quite a few number of changes.  I raised this question more than a year ago

    When I OCR two versions of the same document and then compare the documents in Acrobat Pro XI, I usually get the message that there are no changes to mark.  However, I know there a quite a few number of changes.  I raised this question more than a year ago, and the response I received had to do with the quality of the OCR and the scans of the documents.  However, if I use Acrobat Pro XI to save the same documents in Word and then run a comparison in Word all of the changes are marked.  When a PDF is saved as a Word document in Acrobat Pro XI, is a different OCR module being used than the one used in Acrobat Pro XI for text recognition?

    OCR is only for recoginition of the image / picture of text provided by an scanner.
    Content typed into a Word file which is converted to a PDF is (in Word and in PDF) *not* an image  or picture of text - it is the digital text. So, no OCR involved.
    When the "digital" (renderable) text of a PDF's page content is exported to Word no OCR is involved.
    When a PDF's content is from the image output of a scanner and this is a picture of text then OCR comes into play.
    If this content is exported to Word before doing OCR then it is the image that is exported to the Word file.
    Once OCR is performed it is the OCR output that is exported.
    OCR output is (always will be) impacted by "the quality of the OCR and the scans of the documents". 
    Regardless "Compare" is based on a Word file output to PDF1 then edits to the Word file followed by an output to PDF2. You use Acrobat Pro to do a compare of PDF1 & PDF2.
    Paper 1 scanned to image 1 to image 1 in PDF1 that gets OCR 1 and
    Paper 2 scanned to image 2 to image 2 in PDF2 that gets OCR 2
    being processed with Acrobat Pro's Compare can certainly be done.
    But - well you've described what can be observed.
    Be well...

  • How to compare between two versions of template project???

    Dear All,
    We are doing some cleanup activity in our solution manager system. For this actually we have created the replica of this project from production system to a sandbox system. We can do the cleanup of this project and can transport this new project to our production system and can move on.
    But the pbm we are facing now is, how do we bring in the data captured or added to the production system after we have copied it to the sandbox system?
    Can anybody throw in some light into this issue?
    We tried the option of creating different version for the template and using the sa_project_upgrade transaction to compare between two versions of the template using "Current Version in Project" option. Not sure whether this will work out.
    {{We thought that if we try in this way, we can find the difference between the two versions of the template project, and from there, might be we can bring in the new changes into our new project manually. We do agree that this is not the right approach.}}
    But the end result we got was like we got the information regarding where all there is the difference between the current version in the template project to that of the original(in our case it checked against BPR as we selected the scenarios from BPR for this template). But what we expected was a difference between two versions of the template.
    Pls help. Pls make a try to help. Any thoughts in this direction will help us to move forward.
    Any info will be suitably rewarded.
    best regards,
    Krishna.

    Hi Andreas,
    Thanks a lot for your immediate reply.
    I too had that doubt that my appraoch will not work. But wanted to get confirmation that it will not work. Also wanted to know about any other approach. Thank you for providing me with some alternative approach.
    I tried the option suggested by you. But while running the comparison report for the newly copied project with the option "New Version of Original", I am getting the below error. I do agree that this approach should work. But for some reason I am getting the below error. Can you pls look into the same and help me out.
    Internal error
    Message no. AI_COMPARE006
    Diagnosis
    An unexpected error has occurred in:
               program CL_SA_PROJECT_UPGRADE_ONLINE==CP
               include CL_SA_PROJECT_UPGRADE_ONLINE==CM002
               line                                                  102
    Procedure
    Restart the transaction. If the problem persists, check if a SAP note is existing for this problem. If not please send a message to the SAP hotline.
    Thanks a lot in advance.
    best regards,
    Krishna.

  • Query to compare two different periods

    hello, I want to compare two different periods and put together following query and wondering if this is the right way to do it:
    WITH  MEMBER  [TotalForThePeriod] AS
     SUM( {[Date].[Calendar].[Date].&[20070101]:[Date].[Calendar].[Date].&[20070228]}
          , [Measures].[Internet Sales Amount]
    MEMBER  [ThisMonth] AS
     SUM( {[Date].[Calendar].[Date].&[20070101]:[Date].[Calendar].[Date].&[20070131]}
          , [Measures].[Internet Sales Amount]
    MEMBER  [NextMonth] AS
     SUM( {[Date].[Calendar].[Date].&[20070201]:[Date].[Calendar].[Date].&[20070228]}
          , [Measures].[Internet Sales Amount]
    MEMBER [TotalForTherPeriod2] AS
       [ThisMonth] + [NextMonth]
    SELECT 
     [Product].[Category].[Category],
    //  [Measures].[Internet Sales Amount],
    //  [Measures].[Internet Order Quantity]
      [TotalForThePeriod],
      [ThisMonth],
      [NextMonth],
      [TotalForTherPeriod2]
    ) ON COLUMNS
      [Sales Territory].[Sales Territory Country].Members
    }  ON ROWS
    FROM [Adventure Works] 
    mark it as answer if it answered your question :)

    Hi Parry2k,
    According to your description, you want to compare the sales of two different periods. Right?
    Based on your query, both the Period1 and Period2 are from 20070101 to 20070228. They are same period, so it supposed to return same sales value on that two columns. Your query is right to me.
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • To compare two pdfs using version 8

    Hi,
    Can somebody please help me in how to compare two pdfs using acrobat reader ver 8 or any other othe tool which can be used for this. I know acrobat reader 9.0 can do that but i don't want to go for it.
    Thanks in advance
    Shruti

    There is no product called Acrobat Reader any more.
    There is the free product Adobe Reader. This cannot compare documents,
    in any version.
    There is the commercial product Acrobat. This comes in versions
    Acrobat Standard and Acrobat Professional. Acrobat Professional can
    compare documents, perhaps Acrobat Standard too. This is true in
    version 8 and version 9.
    Aandi Inston

  • Comparing two characteristics in query.

    Hi,
    In my CKF, I want to compare two different characteristics. Field 1 contains the value 'Y' and 'N' while Field 2 contains the value 'SP' and 'MP'. I tried to create a formula variable using key but the dimension ID supports does not give option of char.
    In the query i am trying to compare both the fields:
    ((Field 1 == 'Y')AND(Field 2 =='SP'))* (20 - X)+ ((Field 1 == 'Y')AND(Field 2 =='MP'))* (30 - X)
    Can anyone kindly suggest what can be done in this case. Any suggestion would be of gr8 help to me.
    Thanks
    Palak Vyasa

    i think its alomost not possible what you are trying to achieve (no idea if there is a way)..
    but i have an idea..why don't you try out with restricted KeyFigures?
    Create two dummy RKFs and hide them.
    RKF1: combination of Field1=Y,Field2=SP,and any Base KF.
    RKF2: combination of Field1=Y,Field2=MP,and same Base KF.
    Then try this formula:
    (RKF1<>0)(20 - X)+(RKF2<>0)(30 - X)
    One of these RKFs must be zero always then only you get desired result..isnt it?
    as both RKFs are restricted by same KF and Same Field1 but different Field2,one them should be zero always.

  • How to compare two amount colomns in the query ?

    Hi,
    I need to compare two amount colomns in the query and based on that i need to change the color of the colomn
    Is it possible by using exceptions.if yes please tell me how to do it.
    Regards
    Ansari

    Hi,
    you can give this a try:
    1) Create a formula keyfigure (Keyfigure A> Keyfigure B)* 1+(Keyfigure A< Keyfigure B)* 0, so here you get value as either 0 or 1,
    2) Hide this Formula Keygiure for display in the report, and create a exception on this Formula keyfigure for its value 0 or 1 with the desired colors.
    3) While defining the exception on the 3rd tab we get the option to specify the Columns for implication of this exception, their you can specify the desired 2 Keyfigures to be highlighted with the colors.
    Hope this helps ..
    Regards,
    Umesh.

  • Is "Compare two Documents" only in the Mac version?

    I see discussions that talk about comparing two documents using "Document>Compare Documents", but I can't find any kind of compare feature anywhere in the menu structure. I'm using Acrobat 9, Standard on Win XP here.
    I have Acro Pro v5.0 at home and it's just not there.
    I'm curious because I posted to Framers and got several responses directing me to the feature. I'm guessing this is just
    a difference between the Mac version and the Windows version?
    I'm trying to find something that will simplify the process of marking changes between two PDFs.
    Thanks in advance
    JPK

    Any idea why the menu item would not be present?
    I've got Adobe 9, Standard, version 9.2.0 installed. Is this perhaps something that could have been disabled at install or in an admin update?

  • SCCM 2007 Query to compare two machines and their collections

    I need a query/report in sccm to run against two machines.  One has the base image and standard applications, the other will have the base image plus additional applications installed from the RAP menu.  I'd like to query the two and find the difference
    between their add/remove programs, and also add the Package ID.  
    I found this query below, but it doesnt display the Package ID, which I'd like to have as well.
    Ultimately, I'd love the result to filter out the common aplications and only show what's missing from the base machine Vs the full-blown machine.
    ************* SQL STATEMENT BELOW HERE ************
    SELECT     one.Computer1Name AS [Computer 1 Name], one.Computer1Display AS [Display Name], one.Version0, two.Computer2Name AS [Computer 2 Name], 
                          two.Computer2Display AS [Display Name], two.Version0
    FROM         (SELECT     v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 AS Computer1Display, v_R_System.Netbios_Name0 AS Computer1Name, 
                                                  v_GS_ADD_REMOVE_PROGRAMS.Version0, v_GS_ADD_REMOVE_PROGRAMS.InstallDate0
                           FROM          v_GS_ADD_REMOVE_PROGRAMS INNER JOIN
                                                  v_R_System ON v_GS_ADD_REMOVE_PROGRAMS.ResourceID = v_R_System.ResourceID
                           WHERE      (v_R_System.Netbios_Name0 = @Computer1) AND (v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 IS NOT NULL)) 
                          AS one FULL OUTER JOIN
                              (SELECT     v_GS_ADD_REMOVE_PROGRAMS_1.DisplayName0 AS Computer2Display, v_R_System_1.Netbios_Name0 AS Computer2Name, 
                                                       v_GS_ADD_REMOVE_PROGRAMS_1.Version0, v_GS_ADD_REMOVE_PROGRAMS_1.InstallDate0
                                FROM          v_GS_ADD_REMOVE_PROGRAMS AS v_GS_ADD_REMOVE_PROGRAMS_1 INNER JOIN
                                                       v_R_System AS v_R_System_1 ON v_GS_ADD_REMOVE_PROGRAMS_1.ResourceID = v_R_System_1.ResourceID
                                WHERE      (v_R_System_1.Netbios_Name0 = @Computer2) AND (v_GS_ADD_REMOVE_PROGRAMS_1.DisplayName0 IS NOT NULL)) AS two ON 
                          one.Computer1Display = two.Computer2Display
    ORDER BY [Computer 1 Name], [Computer 2 Name]

    This is as close that I managed to get.....
    SELECT     one.Computer1Name AS [Computer 1 Name], one.Computer1Display AS [Display Name], two.Computer2Name AS [Computer 2 Name], 
                          two.Computer2Display AS [Display Name]
    FROM         (SELECT     v_Advertisement.PackageID, v_ClientAdvertisementStatus.AdvertisementID, v_R_System.Netbios_Name0 AS Computer1Name, 
                                                  v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 AS Computer1Display
                           FROM          v_R_System INNER JOIN
                                                  v_GS_ADD_REMOVE_PROGRAMS ON v_R_System.ResourceID = v_GS_ADD_REMOVE_PROGRAMS.ResourceID INNER JOIN
                                                  v_ClientAdvertisementStatus ON v_GS_ADD_REMOVE_PROGRAMS.ResourceID = v_ClientAdvertisementStatus.ResourceID
    INNER JOIN
                                                  v_Advertisement ON v_ClientAdvertisementStatus.AdvertisementID = v_Advertisement.AdvertisementID
                           WHERE      (v_R_System.Netbios_Name0 = @Computer1) AND (v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 IS NOT NULL)) AS one FULL OUTER JOIN
                              (SELECT     v_Advertisement_1.PackageID, v_ClientAdvertisementStatus_1.AdvertisementID, v_R_System_1.Netbios_Name0 AS Computer2Name, 
                                                       v_GS_ADD_REMOVE_PROGRAMS_1.DisplayName0 AS Computer2Display
                                FROM          v_R_System AS v_R_System_1 INNER JOIN
                                                       v_GS_ADD_REMOVE_PROGRAMS AS v_GS_ADD_REMOVE_PROGRAMS_1 ON 
                                                       v_R_System_1.ResourceID = v_GS_ADD_REMOVE_PROGRAMS_1.ResourceID INNER JOIN
                                                       v_ClientAdvertisementStatus AS v_ClientAdvertisementStatus_1 ON 
                                                       v_GS_ADD_REMOVE_PROGRAMS_1.ResourceID = v_ClientAdvertisementStatus_1.ResourceID
    INNER JOIN
                                                       v_Advertisement AS v_Advertisement_1 ON v_ClientAdvertisementStatus_1.AdvertisementID
    = v_Advertisement_1.AdvertisementID
                                WHERE      (v_R_System_1.Netbios_Name0 = @Computer2) AND (v_GS_ADD_REMOVE_PROGRAMS_1.DisplayName0 IS NOT NULL)) AS two ON 
                          one.Computer1Display = two.Computer2Display
    ORDER BY [Computer 1 Name], [Computer 2 Name]

  • Compare two rows in same table

    Hi,
    I want to compare two rows (some columns) in the same table, and if the data in the data columns is different, I want to pick the latest one. The table is date tracked. For instance I have an address table with different addresses for an employee with effective date. I want to be able to pick the latest row if the postal code is different for the 2 rows. Is this possible in sql. I can do this in Pl/sql, but dont want to use it. Eg
    address_id, postal_code, person_id,last_update_date
    123, pn123,1,12-JAN-01
    124,pu124,1,13-JAN-01
    I want to be able to retrieve just the second line.
    Any help is appreciated

    Welcome to the forum!
    Whenever you post please provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    >
    The table is date tracked. For instance I have an address table with different addresses for an employee with effective date. I want to be able to pick the latest row if the postal code is different for the 2 rows.
    >
    Your question is a little confusing because you are using terms like 'date tracked' and 'effective date' without explaining exactly what your definitions of those terms is.
    Why do you want the latest record ONLY if the postal code is different? What if the address is different? Then which record do you want?
    Why not just take the record for each person/company that has the latest date? If the data is the same then it doesn't which record you get so the one with the latest date will do. And if the data is different taking the one with the latest date gives you the latest data.
    The classic definition of effective date is 'the date the information becomes effective'. Information with a given effective date is NOT in effect before that date and is SUPERCEDED when data is entered with a later effective date if the actual date is later than or equal to the effective date. Using your data
    >
    123, pn123,1,12-JAN-01
    124,pu124,1,13-JAN-01
    >
    The first record IS NOT effective for dates prior to 12-JAN-01. In fact for a query looking for data prior to that date there isn't any data.
    The first record is also NOT effective for dates on or after 13-JAN-01. Only the second record is effective.
    If you added a record for 14-JAN-01 this record would not be effective until on or after that date (i.e. not for another 4 1/2 months).
    So for the classic definition of effective date the query needs to provide the AS OF date to use to obtain the data. If, as in your system, you are not allowed to create records with dates in the future and you just want the latest record then you can just select the record with the MAX(myDate) value for the given person_id, address_id or whatever your key values are.
    Edited by: rp0428 on Aug 11, 2012 7:50 AM

Maybe you are looking for

  • IPod Frozen and Not Being Recognized in iTunes

    I have two problems. 1. My iPod is frozen. It says it's playing and it's not. Tried the toggle hold on and off trick then tried hold the play and the middle button down to reset and restore, but nothing happens. 2. The iPod isn't being recognized by

  • Ios8.0.2 can't use 3g and 4g

    iphone6 with ios8.0.2 if i put iphone on the table without doing anything that I can connect 4g. but  I enen open any app or just get into control center the 4g connection will broken.

  • UNCHECK BATCH MANAGEMENT INDICATOR

    Hello all, I cannot find an appropriate Note onto OSS to solve this issue and hope you could provide some ideas over it. By error on initial upload we've flagged the 'batch-mgmnt' box (MARC-XCHAR) for few materials on period 12-06.  These materials h

  • AS2 loading AS3

    Hi, If I target player 9 and use AS2 code I can load an AS3 swf, I presume that I cannot do anything with this, like poll for its frames etc. I won't go into the details of why I'm doing this but can anyone confirm that AS2 swfs cannot use an AS3 swf

  • Unable to see Member disk in ASM

    Hi all I am having standalone(NON-RAC) box with Linux AS3 (Kernel Ver. 2.4.21.4) and oracle 10G installed on it. It is having one database as ORCL. Now i wants to configure ASM on it. For that I did the following activities. mkdir -p /u03 mkdir -p /u