About the delete of joined view

if create a view refering to a single table, then the delete operation to the view will delete the corresponding row in the refered table, but when i create a view by joining two tables, the result seems to be confused.
create view ev select e.ename,d.loc from emp e,dept d where e.deptno=d.deptno;
delete from ev where loc like 'N%';
then 3 row was deleted from the view with 3 rows deleted in the emp table, but nothing happened in the table dept which supposed to be also delete;
Why, or is these any principles dealing with the deleting this kinds of view. and I tried, the insert of this view is forbidden.

nothing happened in the table dept which supposed to be also delete
Sorry, according to who exactly? According to your opinion of how this ought to work without actually reading the documentation?
DELETE from a join view requires that the view contains one (and only one) key-preserved table and that is the table that is DELETEd from.
If you wanted to modify this behaviour (e.g. to DELETE from both tables) you could consider using an INSTEAD-OF trigger.

Similar Messages

  • Information about the deleted sales order line item in idoc.

    Hi Experts,
    I am new to IDOC.We have the following idoc requirement,
    When a line item is deleted from the sales order(VA02) ,
    the outbound idoc getting triggered for the sales order has the information about the rest all line items other than the deleted line item.We now want the information about the deleted line item in the Idoc .
    Please help me in proceeding further.

    Hi,
    I am facing the same scenario of capturing the  deleted sales order line item in idoc.
    I am using ORDRSP message type , where in E1EDP01- ACTION contains value  "000" .
    And the Deletion line item is not been captured, is there any configuration setting required to
    capture the deleted line item in Idoc.
    Based on the posting in this thread i understand that there is an  indicator which has to be set .
    Please let me know what is that indicator and how to set it?
    Thanks
    Sathish

  • Really simple Mac Mail question about the Delete button

    When at a message, the Edit menu shows Command+Delete as being the proper keystroke for deleting a message.
    Just pressing Delete also removes it from the Inbox.
    What is different between that and Command+Delete?
    Thanks,
    doug

    Hi,
    I don't have a very good answer to you other than the fact that the Macbook does not have a proper DELETE-button.  You delete by pressing cmd/backspace.
    If you want to delete something through Finder you have to press cmd/backspace.  In orher programs, like Mail, you can delete by pressing only backspace.  In iPhoto you can delete pictures by presing backspace and conform with return.
    The reason for these different solutins are not known to me...  
    Nils

  • About the Text in HTML Viewer

    Does SAP scripting engine expose any API by which we get the text in a GuiCtrlHTMLViewer. The GuiCtrlHTMLViewer seems to be extending  GuiShell object which is supposed to return Classid for the .Text property. What do the AccText/AccTextOnRequest property return? Everytime I try to get these properties (I am coding in C#) , I end up getting System.Runtime.InteropServices.COMException even after enabling the Accessibility mode. Am I missing something here?

    i have some text in a TextArea and I was wondering if
    it is possible to write some on it with an specific
    font and color, impact in red, and following to it
    another one with other font and color,The simple answer is no. JTextArea and TextArea do not support rendering more than one font or colour for their text.
    You need to use a JTextPane or JEditorPane.

  • How do you permanently delete trash in the deleted items folder?

    I have over 4000 deleted emails in my deleted items folder. How do I permanently delete them from that folder? Thanks.

    Hello,
    If you are talking about the Deleted Items folder in an Outlook client, you probably should ask in the
    Microsoft Office Community Forums.
    Otherwise, I'd probably ask in the
    Outlook.com forum on Microsoft Community.
    In both cases, however, you should be able to right click the Deleted Items folder and select "Empty Folder"
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Where is the DELETE button

    Hi!
    I convinced my wife to switch o Mac. She usually uses the MS Office 2004. Now she is in disspear cause she cant find the delete button. Im not talking about the backspace button, I'm talking about the delete button. Is there a way to emulate the delete button somehow on the macbook?
    thanx in advance / Mikke
    G5 2x2 Ghz    

    Hold down the Function key (it's in the lower-left corner, labeled "fn") while pressing the delete key.
    Macbook, 2.0 GHz, White   Mac OS X (10.4.7)  

  • How to restore/view the deleted records - Please help me on this regard

    Hi All,
    Please help me in restore/view the deleted data.
    I had removed 2 records from a table without back up and commited the same. Now I want to restore/view it, can you please guide me on this regard.
    Oracle Version: 10g
    OS: Windows XP
    Database in Archive Mode.
    With Regards,
    Jamearon

    Aman.... wrote:
    <snip>
    If all what you want is to view the data, you can use the Flashback's as of query which would enable you to go back either by SCN or by Timestamp. If you want to restore those rows back in the time( and losing the changes that has happened in that time ), you can use the Flashback Table option. An example of this is given below,
    http://www.oracle-base.com/articles/10g/Flashback10g.php
    HTH
    Aman....As promised, here's one way to use flashback to restore the one deleted row without having to impact the rest of the table with a general FLASHBACK TABLE.
    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2011.01.23 15:17:56 =~=~=~=~=~=~=~=~=~=~=~=
    login as: oracle
    oracle@vmlnx01's password:
    Last login: Sun Jan 23 15:13:10 2011 from 192.168.160.1
    [oracle@vmlnx01 ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.4.0 - Production on Sun Jan 23 15:18:11 2011
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    SQL> @doit
    SQL> col col_ts for a15
    SQL> conn scott/tiger
    Connected.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE10.2.0.4.0Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    5 rows selected.
    SQL> --
    SQL> alter session set nls_timestamp_format='hh24:mi:ss.FF';
    Session altered.first we will create a test table and populate it. Pay close attention to the row identified by col_id=2
    SQL> drop table flashtest;
    Table dropped.
    SQL> create table flashtest
      2   (col_id number(1),
      3    col_ts timestamp,
      4    col_txt varchar2(10)
      5   );
    Table created.
    SQL> --
    SQL> insert into flashtest
      2    values (1, systimestamp, 'r1 v1');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> exec dbms_lock.sleep(5);
    PL/SQL procedure successfully completed.
    SQL> --
    SQL> insert into flashtest
      2    values (2, systimestamp, 'r2 v1');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> exec dbms_lock.sleep(5);
    PL/SQL procedure successfully completed.
    SQL> --
    SQL> insert into flashtest
      2    values (3, systimestamp, 'r3 v1');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> exec dbms_lock.sleep(5);
    PL/SQL procedure successfully completed.
    SQL> --
    SQL> select * from flashtest;
        COL_ID COL_TS          COL_TXT
             1 15:18:14.896167 r1 v1
             2 15:18:21.841682 r2 v1
             3 15:18:28.772038 r3 v1
    3 rows selected.
    SQL> --
    SQL> update flashtest
      2   set col_ts = systimestamp,
      3       col_txt = 'r2 v2'
      4   where col_id = 2;
    1 row updated.
    SQL> commit;
    Commit complete.
    SQL> select * from flashtest;
        COL_ID COL_TS          COL_TXT
             1 15:18:14.896167 r1 v1
             2 15:18:35.929847 r2 v2
             3 15:18:28.772038 r3 v1
    3 rows selected.
    SQL> exec dbms_lock.sleep(5);
    PL/SQL procedure successfully completed.So at this point we can see that we have 3 rows, and row 2 has been modified from its original values.
    Now we will delete that row.
    SQL> --
    SQL> delete from flashtest
      2  where col_id=2;
    1 row deleted.
    SQL> commit;
    Commit complete.
    SQL> --
    SQL> select * from flashtest
      2  order by col_id;
        COL_ID COL_TS          COL_TXT
             1 15:18:14.896167 r1 v1
             3 15:18:28.772038 r3 v1
    2 rows selected.Now let's do a SELECT...VERSIONS and see what flashback knows about the row.
    SQL> --
    SQL> select col_id,
      2         col_ts,
      3         col_txt,
      4         nvl(versions_startscn,0) START_SCN,
      5         versions_endscn END_SCN,
      6         versions_xid xid,
      7         versions_operation operation
      8  from flashtest
      9  versions between scn minvalue and maxvalue
    10  where col_id=2
    11  order by col_id, start_scn;
        COL_ID COL_TS          COL_TXT     START_SCN    END_SCN XID              O
             2 15:18:21.841682 r2 v1               0    2802287
             2 15:18:35.929847 r2 v2         2802287    2802292 0200260082060000 U
             2 15:18:35.929847 r2 v2         2802292            0A002300A4060000 D
    3 rows selected.
    SQL> --And having seen the above, we can use a more selective form to provide the values for an INSERT statement to put the row back.
    SQL> insert into flashtest
      2     select col_id,
      3            col_ts,
      4            col_txt
      5     from flashtest
      6     versions between scn minvalue and maxvalue
      7     where col_id=2
      8       and versions_operation = 'D'
      9  ;
    1 row created.
    SQL> --
    SQL> select * from flashtest
      2  order by col_id;
        COL_ID COL_TS          COL_TXT
             1 15:18:14.896167 r1 v1
             2 15:18:35.929847 r2 v2
             3 15:18:28.772038 r3 v1
    3 rows selected.
    SQL>One could also query FLASHBACK_TRANSACTION_QUERY to get the actual DML needed to UNDO an operation on a single table.

  • I run OSX10.6.8. Just dwnlded FF8.1 and everytime I go to open it I am asked about the disk image. But if I delete the dmg, the program won't run.

    I just downloaded the 8.1 version. It was a 30+mb file. Previously I ran 4.0. So I drag the new Firefox icon into the Apps folder. It does its merge thing with the old version. Problem is when I click to open FF now, it always throws up this window asking me about the disk image of what I just downloaded. I even tried restarting the computer--but the same message pops up. I checked on your website and it says that I need to "eject" the disk image (i.e. I'm guessing that means the 30+ mb file I just down loaded), so since I don't have an eject option that I can find (except for external harddrives and cd/dvd), I just drug it into the trash. I go to empty the trash and I get a message that that dmg file is "in use" even though FF is completely shut down. So again I'm guessing that means that even though I already merged that dmg file with the old 4.0 version file, if I dump the update file it seems that it's going to mess up the actual revised program file still remaining. I just want to be able to click on the icon in my dock like I've always done and have FF open. I don't want to keep being asked about disk image stuff. Somehow this feels like an easy resolution, but I just can't seem to put my finger on how to resolve it. Thanks for you help.

    Nope---didn't work. I've owned Macs for about 12 years so although I am brain dead on some things, I do have a working knowledge on most things. I only say that to say this--I did try holding down the mouse and choosing empty trash. It asks if I want to permanently delete what's in there. I say yes--and then I get the same identical message again-----'The operation can't be completed because the item "Firefox 8.0.1.dmg" is in use I can then click stop, or continue.' So apparently that complains the same way it does if I click it up on the menu :)))
    As for item owned by---that's not an issue and isn't coming up. User is not a problem either as I am the only user on this system. There is only ONE file in my trash at the moment at that is this dmg file. Nothing Mac. Nothing owned by anyone other than Firefox. The problem seems to be that the dmg file and the original 4.0 FF file are working in tandem with each other--even though I have already drug the new 8.0 globe into the Apps folder and it updated the FF app with the new stuff. If I could force the dmg file to go away, I would do so, but at every turn the system is telling me it can't be done because it seems to think that dmg file is in use---even though everything is shut down and/or ejected. Hey--I'm getting ready to head out and won't be back till evening. I'll check back in this evening. Thank you again for your help.

  • I have a few failed downloads on my iPod that I have bought and paid for. I don't care about the money but I would like to know how to delete them? Is there a way I can do it on my iPod without using a computer?

    I have a few failed downloads in the 'downloads' section on iTunes. It won't let me download any other video and it keeps asking me to 'tap to retry' I don't really care about the money lost but can anyone tell me if I can delete them from my iPod? Thanks x

    Have you tried resetting your iPod:
    Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.

  • About a month ago a song randomly appeared in my songs list and when I tried swiping to the left to delete the song it wouldn't slide over to show the delete button. The delete slide appears with all of my other songs except that one. P.S. iCloud is off.

    About a month ago a song randomly appeared in my songs list and when I tried swiping to the left to delete the song it wouldn't slide over to show the delete button. The delete slide appears with all of my other songs except that one. The ICloud songs are turned off and it wasn't iTunes Radio. 2 more songs like this have appeared and I can't delete them from both my iPhone or my computer (they don't even show up on my computer). If somebody knows how to fix this that would be amazing! Thank You.

    Have you:
    - Restore from backup. See:                                                
    iOS: Back up and restore your iOS device with iCloud or iTunes
      - Restore to factory settings/new iOS device.            
    If a PC
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8

  • HT204053 How can I delete my iCloud account which I do not remember anything about the information that I entered about 4 years ago. It always asks my birth date but it seems I did not enter my correct date how can I bypass this question???

    How can I delete my iCloud account which I do not remember anything about the information that I entered about 4 years ago. It always asks my birth date but it seems I did not enter my correct date how can I bypass this question???

    You cannot delete the account from the server (partly to prevent the username from becoming available again and some-one else using it to pretend to be you).. Having disengaged your devices from it, go to http://icloud.com and delete any data in there such as contacts and calendars. Then just ignore it.

  • How to Create/Modify/Delete a query view from the web template in BI 7.0

    All:
    In BW 3.5, the <b>Query Selection View</b>  web item was introduced for users to create a query view to save the navigational state of a query. This web item was also available to modify and delete an existing query view.
    The Query Selection View web item <u>does not</u> exist in BI 7.0. I see the drop down web item can be used to display the query views associated to a query.
    Can anyone share how to create,modify,save or delete a <b>query view</b> on the web in BI 7.0
    Thanks,
    Kumar

    Sanjay, we experienced the same issue. Below are a few pieces of information that may be of help: 1-The Save As button on the 0ANALYZER template saves the query to the portal. From Bex Web or Bex Analyzer, you have no access to these saved views. We created a ZANALYZER copy of the 0ANALYZER template and removed the Save As button. 2- If you right mouse click on any item in the query results grid of Bex Web, you get a small menu. Clicking on the menu item Save View will save the view to BI. You do not have the ability to delete the saved views from Bex Web. However, you can delete them from Bex Analyzer. This was not an option for us since most of our users are using Bex Web. 3- On the same menu, clicking on Bookmark, saves the navigation and also opens the Internet Explorer Favorites maintence window. The navigation is saved as an entry into the users Internet Explorer favorites where they can organize and delete their entries. However, deleting the favorite does not delete the entry for the bookmark in BI. The bookmarks are stored in table RSWR_DATA. Program RSWR_BOOKMARK_REORG can be used to manage the saved bookmarks. We are loading RSWR_DATA into a chracteristic so that we can query the information in order to help us manage it. I hope this helps you and others that appear to be struggling with the issue of saved views in Bex Web.

  • I just started using a new version of Illustrator and the text I am creating has a pink box behind, looks to be about the depth of the normal linespace, it is not visible in outline view, only in preview. What is it and how do I get rid of it?

    I just started using a new version of Illustrator and the text I am creating has a pink box behind, looks to be about the depth of the normal linespace, it is not visible in outline view, only in preview. What is it and how do I get rid of it?

    Hi Larry. I see. It is a file I have worked on previously, and the font is Myriad which I though came with the system. I just changed to Myriad Pro and the pink box disappeared. Thanks for the assistance, I know a new thing!

  • What can I do about Adobe Flash Player blocking view of internet sites? Is it related to the MacBook Air Flash Storage Drive replacement program?

    What can I do aout Adobe Flash Player blocking view of internet sites?

    1. System Preferences > Other/ Flash Player > Advanced >  Delete  All
         Press the "Delete All" button
         Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
        Follow the prompts.
        Quit Safari.
        Restart computer. Relaunch Safari.
    2.  Allow  Plug-ins
        Safari > Preferences > Security
        Internet Plug-ins >  "Allow  plug-ins"
        Enable it.
        Press " Manage Website Settings" button for more options.

  • So I got this email this morning about my apple ID and that I have to review my apple ID information. Failure to do this will result in the deletion of my apple ID and iCloud. Says it needs to be done within 48 hours. Is this legit?

    So I got this email this morning about my apple ID and that I have to review my apple ID information. Failure to do this will result in the deletion of my apple ID and iCloud. Says it needs to be done within 48 hours. Is this legit? It gives me a link to go to but I am not sure if this is a scam. Also it's signed Yours faithfully "apple iguru"

    read this for a comprehensive guidance for future
    https://www.apple.com/legal/more-resources/phishing/

Maybe you are looking for

  • Export data from an iView to Excel, get a login screen displayed in Excel

    Hi I'm trying to export data from a tableview to excel, I followed the instruction posted by Detlev Beutner, created a class extends AbstractPortalComponent, and overwrote the doOnNodeReady: HttpServletResponse response = request.getServletResponse(t

  • How to compile less with Dreamweaver in windows?

    i have Dreamweaver cs6 and i am trying to compile it with less , i have watched several tutorial on YouTube but most of them for Mac users not for windows users :/ some videos suggest to change files inside dreamweaver like "extensions txt" but it's

  • Dynamic Min Max values of Axis

    Hi Everybody, Just wanna know if there is any possibility to assign dynamically min-max values of Y axis in line chart of  Crystal Reports 2008 using formulas or parametesr or any other idea?? Your suggestions are welcomed. Thanks Regards, Atul

  • Tried to update photoshop CC . error code u44m1p6

    Hi Just updated Photoshop CC and CS6 but failed with error code U44M1P6. After reading various similar problems on the forum I decided to remove programme and reinstal. I have now lost premiere Pro. Photoshop CC and CS6. Tried to download from Adobe

  • VB: Simple Selection

    Hi all, I am just writing my first Photoshop CS2 script in VB that exports all layers to separate files, where the resulting file resolutions are the same as the layer bounds. So far no problem. The way I thought about is - Opening Document - running