How to identify change

Hi All,
I have two table:
Table 1
Key1 Key2 Col3
1 10 A
1 10 B
Table 2
Key1 Key2 Col3
1 10 B
1 10 C
Based on Key 1 and Key 2, I need to identify Value A has been changed to value C in Col3. How can I do this?

Hi,
Can you be more clear about what you're trying to do?
Maybe you want something like this:
SELECT  NVL (t1.key1, t2.key1)     AS key1
,     NVL (t1.key2, t2.key2)     AS key2
,     t1.col3                     AS t1_col3
,     t2.col3               AS t2_col3
FROM           table_1  t1
FULL OUTER JOIN      table_2  t2  ON   t2.key1     = t1.key1
                              AND  t2.key2     = t1.key2
                     AND  t2.col3     = t1.col3
WHERE   t1.key1                        = t2.key1
AND     t1.key2                  = t2.key2
AND     LEAST (t1.col3, t2.col3)   IS NULL
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
See the forum FAQ {message:id=9360002}
Edited by: Frank Kulash on Feb 23, 2013 8:52 AM
Your last message wasn't visible when I wrote the above. I see your desired results now.

Similar Messages

  • How to identify Changes in ALV Table

    Hi All,
    I am using the ALV Component to show a table. Now I would like to identify the changes made to my table. I have tried to use the Change Log of the Context, but the changes to the corresponding context node are not logged in the Change Log (most likely due to the fact that the Context Node is mapped to the ALV Component).
    Now, my question is: How can I identify the changes made in the ALV Table?
    THANKS, Johannes

    you will have to have a NODE which you send to the ALV SET_DATA( ) method
      data:
        lr_salv_wd_table type ref to iwci_salv_wd_table.
      data:
        lr_salv_wd_table_usage type ref to if_wd_component_usage.
    lr_salv_wd_table_usage = wd_this->wd_cpuse_salv_wd_table( ).
      if lr_salv_wd_table_usage->has_active_component( ) is initial.
        lr_salv_wd_table_usage->create_component( ).
      endif.
    lr_salv_wd_table = wd_this->wd_cpifc_salv_wd_table( ).
    lr_node = wd_context->get_child_node( 'DATA' ).
    lr_salv_wd_table->set_data( lr_node ).
    enable contextlog
    ... lr_context->enable_context_change_log( ).
    lr_node = wd_context->get_child_node( 'DATA' ).
    lr_context = lr_node->get_context( ).
    lt_context_changelist = lr_context->get_context_change_log().

  • How to Identify Changes in outline

    <p>Hi,</p><p>I need to make a report that contains all the members that passto another dimention or to other parent in the same dimention. Inaddition I need to insert  ( with calc) new values to themember in the new location.</p><p> </p><p>Anyone has an idea?</p>

    Certainly, Essbase will track changes if you set up a partion on the dimension(s). This is a feature normally used to update outlines in a partition. I've never tried turning it on without the partitioning, but that may be a path worth checking out. There is a particular file type used for outline change tracking when partitioning is active.<BR><BR>The other option might be to use the outline extractor (freeware) developed by olapunderground.com. It should be available on their site and also on this site under downloads. With it, you can take a snapshot of dimension(s) before changes and then again after changes and do a line by line compare with either a database or good text editor.<BR>

  • How can I change the email address of my Apple identifyer?

    I changed email provider*, it affects my apple identifier .  When I buy something it used to send me emails to that old address.  How can I change the email of my identifyer?
    Today i bought something and it said it was the first time I used my machine to buy something and asked for my security questions, but I always bought with my ipad, this is not a new machine.
    * I cancelled my account with Videotron so there is no way I can use the videotron email address anymore ( it was used for my identifyer email address)

    The only email address I see is the name of my apple identifyer.  If I change it to the new address, won't I have 2 identifyer now?  How about everything I have bought on the old email identifyer?
    I think I am misunderstandiing something here...

  • When I place a call from my iphone, I am identified to the receiver of the call by my state of residence instead of my name. How can I change this? Thanks!

    When I place a call from my iPhone 5s, I am identified to the receiver of the call by my state of residence instead of my name. How can I change this? Thanks!

    That would be an issue on the recipients end.
    sounds like they didn't save your number in their contacts.

  • How to identify the DDL changes ?

    Hi all,
    How to identify the DDL changes done to the database ?
    By triggers only Or we can use Logminer also OR
    SELECT * FROM USER_OBJECTS where object_type = 'TABLE' order by LAST_DDL_TIME desc;
    OR
    is there any other options are available ?
    Thanks in advance,
    Pal

    Something from asktom might help
    tkyte@TKYTE816> create or replace trigger ddl_trigger
    2 after create or alter or drop on SCHEMA
    3 declare
    4 l_sysevent varchar2(25);
    5 l_extra varchar2(4000);
    6 begin
    7 select ora_sysevent into l_sysevent from dual;
    8
    9 if ( l_sysevent in ('DROP','CREATE') )
    10 then
    11 if l_sysevent = 'CREATE'
    12 then
    13 begin
    14 select 'storage ( initial ' || initial_extent ||
    15 ' next ' || next_extent || ' .... )'
    into l_extra
    16 from all_tables
    where table_name = ora_dict_obj_name
    17 and owner = user;
    18 exception
    19 when no_data_found then null;
    20 end;
    21 end if;
    22
    23 insert into log
    24 select ora_sysevent, ora_dict_obj_owner,
    25 ora_dict_obj_name, l_extra
    26 from dual;
    27 elsif ( l_sysevent = 'ALTER' )
    28 then
    29 insert into log
    30 select ora_sysevent, ora_dict_obj_owner,
    31 ora_dict_obj_name, sql_text
    32 from v$open_cursor
    33 where upper(sql_text) like 'ALTER%' ||
    34 ora_dict_obj_name || '%'
    35 and sid = ( select sid
    36 from v$session
    37 where audsid=userenv('sessionid') );
    38 end if;
    39 end;
    40 /

  • TS4079 Why does Siri identify me by my husband's name...how can I change it

    How can I change the name Siri identifies me with?

    Is your phone listed in your husband's name? 
    Also you can tell Siri to "Call me deeffn from now on" or what ever your actual name is.

  • How can i change my mac book air ID registered in beginning

    I purchased two macs and put same email address during registeration, how can I change the ID for one mac so that they are identified as different computers?

    If it shipped with Lion, restart with the Option key held down, tab to the recovery partition, press Enter, and erase the drive from there. Install a new OS.
    (62586)

  • How do I change a photo file name, e.g. DSC001, etc.?

    When I either import or download digital images into IPhoto, I need to change the filename in some instances.  Using the Information feature in IPhoto, I give the photo a name or identifier and add other information.  However, when I then burn the photo to a CD, the original filename, e.g. DSC001, etc. shows up.  How can I change it?

    Aaron Marquez wrote:
    This isn't true.
    Select the photo, then Press Command + I or go to View > Info and double click the photo filename to rename it.
    Best,
    Aaron
    That does NOT change the file name and does not help (Unless you use the option to use the title for the file name during export) - You can not change the file name while the photo is in iPhoto (unless you do so using the finder awhick will corrupt your library and cause data loss)
    LN

  • How do i change my default search engine from yahoo to gooogle?

    i used to have a search engine window, identified by the google logo, towards the upper right corner of my mozilla firefox screen.
    This is a shared computer.
    Somewhere along the line, someone did something to make the google search box disappear, replaced by a yahoo search box.
    i liked it better the old way. how do i change it back?

    Safari/Preferences/General.  There is a place there to specify your default search engine.

  • Since upgrade to Yosemite, whenever I send an Email, the receiver sees it as coming from my wife only in the "From" column regardless of which signature I use. How do I change this?

    I recently upgraded to Yosemite.
    When I send an Email, the receiver sees that it comes from my wife in their "from" column
    We have separatee signatures that I can chose from and our Email account is identified with both of our names.
    How do I change this so that when I send something, the receiver knows it is from me and not from my wife.

    It may be that you have more than one outgoing mail account, and you're sending from the wrong one. From the Mail menu bar, select
              Mail ▹ Preferences...
    The Mail preference dialog opens. Select the Composing tab from the row of icons at the top. From the menu labeled
              Send new messages from:
    choose
              Account of selected mailbox
    Note that this setting may have no effect if you start a new message while a VIP or smart mailbox is selected in the mailbox list. Those are saved searches, not actual mailboxes.
    If the problem remains, select the Accounts tab in the preference dialog, then select the affected account in the list on the left.
    In the Account Information pane, select the correct server in the menu labeled
              Outgoing Mail Server (SMTP)
    If there's only one server in the menu, select
              Edit SMTP Server List...
    and add a new server with the correct settings. If you're not sure how to do that, try the Mail Settings Lookup.
    Another possibility is that the wrong card in your address book is selected as yours. Select your card in the Contacts application. Then select
              Card ▹ Make This My Card
    from the menu bar.

  • How to track changes in a hyperion application for SOX control?

    Hello all,
    We have been working on identifying the best way on how to track changes in a hyperion application in regards to the SOX control.
    The following areas have been identified as the main areas of an application where the changes are to be tracked:
    Monthly data load from ODI
    Calculation of data
    Metadats change
    Formula edit
    Changes to reports
    Changes to security
    Can anybody please suggest the best ways to do this? Has anyone experienced this issue before?
    Somebody suggested that there is hyperion auditing available.
    Is there any other software that is available that can do this or just documenting the changes would be the best option?
    Please suggest. Toyr response would be appreciated.
    Thanks.

    Shared Services allows the auditing of provisioning and life-cycle management activities to track changes to security objects and the artifacts that are exported or imported using Lifecycle Management Utility.
    For Shared Services auditing, refer Page 129 of http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_security.pdf
    Planning Administrators can select aspects of the application for change tracking. For example, you can track changes to metadata, such as when users change a member property or add a currency. You can also track changes in data forms, business rules, workflow, users, access permissions, and so on.
    For Planning auditing, refer Page 56 of http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_admin.pdf
    HTH-
    Jasmine.

  • How do I change a name of a button in a Flash movie?

    Hello everybody,
    I'm newbie with Flash and I have a problem.
    I have a flash movie, which I want to use as a header for a website. When I play the movie, I have 5 different buttons on it. When I open through Flash the .fla file it shows me that there is one button copied 5 times.
    How do I change the name in one of the buttons in the movie, I want when I play the movie, to have a different name on the button, but I don't understand from where do I change the name, if all the buttons I have in the .fla file has the About me name, I suggest the name is the same because all the buttons does the same effect when you go over them.
    I would appreciate some help!

    I'm assuming you mean you want to change the label that displays on the button when you run the file.  Flash allows for a variety of ways to approach a design, so there is no ready-made answer.  If all of the buttons appear to be the same in the fla file, then chances are they are getting their labels from actionscript code.
    What you probably need to do is look thru the actionscript code that might be in the first frame or so of the timeline.  You can identify frames containing actionscript because they what appears to be a lower case "a" in them.  If you click on such a frame and open the Actions window, you will see the actionscript code.  Look for any code that has the button labels you see when you run the file.
    You might also have some other file(s) that came with the fla, such as an .as file or a .xml file.  If so, you may need to look in these files also.

  • How to identify multiple checkbox selected in JSF

    Hi All,
    My scenorio is.
    I am diplaying records on page using <h:dataTable>
    I have one column in dataTable which contains checkboxes which I displayed as,
    <h:selectBooleanCheckbox id="abc" />
    Also I have button on page.
    I want to select 2 check boxes & then click onto button then that 2 records should get deleted.
    how to identify that 2 checkbox selected ?
    can anybody help ?
    Thanks
    Sandip

    Hi BalusC
    Thanks for your reply.
    Is there any other approach to do this ?
    because as per your approach my code will not work because you are using seperate bean.
    If i try to compare your code with my code then I have to do changes in my entity bean which is not possible.
    So is there any other way ,
    If I want select more than 1 checkbox & delete those records of selected checkboxes .
    i.e. I want to find which checkboxes selected on JSP page sothat I will get those selected value on Java side & will delete that record from java side.
    Please help.
    I am not finding any solution to this.
    If any code then it will be a great help for me.
    Thanks
    Sandip

  • How do i change my settings to allow an installation of a download?

    How do I change the settings on my Macbook Pro to allow an installation of a download?

    Under Security & Privacy under System Preferences, check to see what settings you have for "Allow Applications downloaded from..." to select your safest settings. I have mine checked for App Store and Identified developers. You can change it to "Anywhere" to be able to access anything. You should be able to install even with these settings: you'll just have to authenticate with an admin password.
    Clinton

Maybe you are looking for