How should I do for this.

OS: Windows Server 2003
DB: Oracle Database 11g

Basically I have a (IN.) purchase order table that has the columns such as purchase order number, supplier, Date of purchase etc... but no element. items to purchase are in another table (PO_ITEM), that has a foreign key that references the PO number in the PO table.

what I want to do is, as long the PO has not been approved by the Purchasing Manager, users can always make changes in the PO_ITEM table (such as the amount of items to be purchased). Once the Director has approved the PO, no one can make changes to the PO_ITEM who has the number of referenced in their foreign key purchase order. the purchase order has a (status) column that indicates whether it has been approved by the Manager.

How the restriction?

I think I should put a trigger on the PO_ITEM before each update, which checks the status of the purchase order. If it is approved, the change is rollled return. What is the command to reject an update statement in a trigger?

put it to abort if condition does not get satisfied in initiating

raise_application_error (-20001, ' ERROR: PO is approved.');

Tags: Database

Similar Questions

  • How should I prepare for El Capitan 10.11.2?

    Hi all

    As the title asks, how should I prepare for this upgrade?

    I had already installed El Capitan 10.11.0, but quickly returned to 10.10.5 after discovering several problems:

    1 (2 x 1 x POP, IMAP) e-mail accounts - problems with lack of mailboxes, mail lost, unable to send mail, etc.

    2. Time Machine backups were not held as scheduled when my iMac end of 2013 has been plugged into my ups APC.

    3. casual does not recognize my USB Superdrive.

    After the restoration of my old system of Time Machine, I followed several thread on these forums to see what others have experienced with the 10.11.2 release.

    My iMac does not have any third-party software with the exception of my HP ENVY 4502 print utility.

    How should other ensuring that Time Machine backs up current, I prepare for this facility to ensure that I do not lose important emails from my accounts {2 x iCould (IMAP) and Comcast (POP3) 1 x}?

    You know, honestly until that Apple's software team act together and reflection on the QUALITY rather than pretty flowers I'd wait for a few weeks to a month.  Or, at least until more people have put to date to see if there are problems.

    So, to answer your question, make sure you have at least 2 strong BACKUPS before you update.

  • How can I get Adobe to stop charging me? How can I remove this program on my computer? Who should I contact for this to stop?

    Help! How can I get Adobe to stop charging me? How can I remove this program on my computer? Who should I contact for this to stop?

    Contact adobe during the time pst support by clicking here and, when available, click on "still need help," http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • Impossible to download World of Warcraft, receive the error message "DEP (Data Execution Prevention) should be enabled for this program.

    original title: need help, DEP is upward :(

    Here's the deal, im trying to download World of Warcraft. DEP (Data Execution Prevention) don't. When im trying to change it and add it to the list "settings for DEP" it won't let add me. DEP (Data Execution Prevention) should be enabled for this program. You can not disable DEP (Data Execution Prevention) for this program. -so here's the question, what can I do to fix this? I rebooted my pc as an hour ago, b4, I did I actually got the game installed. Is there a way for me to squeeze the game spent DEP (Data Execution Prevention)? Please help me with this. Thank you. -Mikkel.

    Hello

    EricLaw IEInternals - a peek at Internet Explorer from inside. -Understanding DEP/NX
    http://blogs.msdn.com/ieinternals/archive/2009/10/10/understanding-data-execution-prevention-crashes-in-IE8.aspx

    The problem might actually be an addon or another program causing the problem and you
    must verify that 1.

    What antivirus/antispyware/security products do you have on the machine? Be one you have
    EVER had on this machine, including those you have uninstalled (they leave leftovers behind which)
    may cause strange problems).

    Start - all programs - Accessores - system tools - IE with no Addons - does this work better?

    IE - Tools - Internet Options - Advanced - tab click on restore, and then click Reset - apply / OK

    IE - Tools - Internet Options - Security - reset all Zones by default level - apply / OK

    not better?

    Close IE and try again IE or IE with no Addons

    IE - tools - manage Addons (for sure disable SSV2 if she's here, is no longer necessary, but)
    Java always install it and it causes problems - you never update Java to go back in and turn it off again.)
    Search for other possible problems.

    Windows Defender - tools - software explore - look for problems with programs that do not look
    right. Allowed are usually OK and "unauthorized" are not always bad. If a doubt
    program to ask about it here.

    Could be a free - BHOremover - BHO - standalone program, needs no installation, download and
    run - not all are bad but some can cause your question. (Toolbars are BHO)
    http://securityxploded.com/bhoremover.php

    Startup programs (Vista)
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    How to change, add or remove startup programs in Windows 7
    http://www.SevenForums.com/tutorials/1401-startup-programs-change.html

    Also get Malwarebytes - free - use as scanner only. If you ever think malware and which would be
    stands with Prevx running except for a cookie of occasional low level (not a big deal), the update
    and then execute it as a scanner.

    http://www.Malwarebytes.org/

    I would add prevx so.

    Prevx - home - free small, fast, exceptional protection CLOUD, working with other security
    programs. It is a single scanner, VERY EFFICIENT, if it finds something come back here
    or use Google to see how to remove.
    http://www.prevx.com/

    PCmag - Prevx - Editor's choice
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    -------------------------------------------------------------------

    Do yourself a big favor and work through 1 above.

    Data execution prevention Internet Explorer Windows 7 included - several difficulty methods here
    http://HubPages.com/hub/data-execution-prevention-Internet-Explorer

    Feature Data Execution Prevention, or DEP in Windows Vista & Windows 7 - see also the links to the
    at the bottom of this page.
    http://www.WinVistaClub.com/F33.html

    How control DEP but I don't recommend turning it off and certainly not to let power off.

    How to enable DEP on or off for a program of Vista (and Windows 7)
    http://www.Vistax64.com/tutorials/65790-DEP-turn-off-programs.html

    How to enable or disable DEP in Vista (and Windows 7)
    http://www.Vistax64.com/tutorials/120778-DEP-enable-disable.html

    ====================================

    If nothing else works you can try this however I would use as a last resort.

    IE - Tools - Options - Advanced Options - Internet Security Section - clear the check box enable memory
    Protection to mitigate the attacks online - APPLY - OK close and restart IE

    I hope this helps.

  • My computer crashed while I was able to cancel the registration of my copy of Windows 7. I would like to move to my laptop. What should I do for this (a number to call, etc.) Thank you!

    My computer crashed while I was able to cancel the registration of my copy of Windows 7. I would like to move to my laptop. What should I do for this (a number to call, etc.) Thank you!

    Jut a little word. If it is a retail version of Windows 7, you should be OK, but if it's a version of Windows 7 OEM then the license died when the machine does.

  • I was buy images of Photo of Dollar. I received this offer. Promo.99 by image through an annual plan of 10 images for9.99/month. How can I register for this offer?

    I was buy images of Photo of Dollar. I received this offer. Promo.99 by image through an annual plan of 10 images for9.99/month. How can I register for this offer?

    I forgot to say that this offer is through Adobe Stock.

  • What should I download for this project?

    I'm learning web Design.
    My book says to download Adobe Photoshop Elements.

    I tried to do and done with this thing of creative cloud which is currently downloading Lightroom and awaiting confirmation for Photoshop...
    But I thought I'd need Photoshop elements.

    Is Photoshop Elements, a subdivision of Photoshop that is provided if you download this?

    What should I do with this creative cloud? I just want to follow up with my book.

    Photoshop Elements is nothing to do with the Adobe creating cloud.

    Photoshop is a big, complex, professional image editor which is included in the cloud.

    Photoshop Elements is a stripped down, a simplified version of Photoshop and is intended for novices with simple image editing needs.

    You don't need the cloud at all.

    Download Photoshop elements 14 (current version) of

    Download Photoshop Elements | 10, 12, 14, 11, 13

  • Can I use CC Student Version for business purposes, too, and how can I apply for this?

    Dear Creative-cloud-community,

    just tested your Creative Cloud within 30 days a love to continue with the student, Version € 19.99/month.

    How make a demand for it and can I use this version to business purposes, too?

    Thank you very much for your reply and best regards,

    Bernadette Dieterle

    Purchase and process of eligibility verification information can be found here:

    Please visit the FAQ of the teaching Creative Cloud for business / training FAQ

    https://helpx.Adobe.com/x-productkb/policy-pricing/Education-FAQ.html

    Can I use Student and Teacher Edition products in trade?

    Yes, Student and Teacher Edition products can be used commercially on your private computer. They cannot be resold.

    Click on tab student projects and teachers to see the student plans: https://creative.adobe.com/plans

    Educational terms can be found here: terms and Conditions

  • As a subscriber of creative cloud what should I pay for this app?

    Don't know if this is the right place, but I need to know if I should pay for this app, or if provided as part its CC

    the purchase and download of photoshop touch is managed by the apple app store and the google game store, so you will have to pay via one of these stores.

    It is not part of all packages/subscriptions.

  • VI Analyzer - how you re there for this use case?

    My group has different people working on different LVPROJs for every software we have available. Each LVPROJ uses our user.libs and instr.libs, as well as a 'framework' in General, it is the same for most LVPROJs.

    I really think that the VI Analyzer toolkit would be powerful for code reviews, but only if I can configure it in a way where what tests I run and what are the criteria can be saved and used on any project. I can't get this to work for me. I want to save all these configurations and easily use it on new LVPROJs - the easier I can do this process, the more likely others will be to be used for the revision of the code. How would you do it? (if it's even feasible)

    I suggest the creation of a .cfg file without a link with the project, but with all the tests selected and configured as you wish... so a .cfg file with no 'elements to analyze' specified. Then, when you work on an individual project, open the CFG file, add the folder to the root of the project to the analysis, then save this CFG file with this project. This means that you can not have the project in your CFG file link, but assuming that your project is everything in a folder of level higher, which should not really be a problem, because the CFG file will be "linked" to the moment there in the top-level folder that contains your project.

  • Swap the motherboard for the section previously acer m5910 / how to Exchange win7 for this mobo HELP NEEDED

    IM about to exchange the new motherboard with chipset intel my m5910 system. I have not install win 7 dvd with my purchase in 2011, it seems to be built in. I have win 7 Home premium product... always on my case and acer s/n + snid number too.

    Only the DVD that I found are 3 dvd - r and it is written: empty recovery DVDs, I checked and all 3 are filled with data.

    When I swap card mother how can I use THIS win7 operating system in my new motherboard?

    If your Windows supplied with your Acer computer, then your Windows is an OEM version and not the retail version. My suggestion will probably not work, but you can always try. Worst case, it's that you have purchase a retail version of Windows from any store.

    If you are patient, wait for Windows 10 is released. You might be able to work around the problem of it being related to the motherboard, or at least 10 Windows can be cheaper to buy retail (I am purely speculating).

    If you don't have the extra money right now to buy a new copy of Windows, then please don't follow my suggestion. My suggestion in the previous post probably will not work because you OEM of windows, but it's just something I want to try it personally.

  • How should I go for a site by typing the url in add bar. without having to select Google search, Amazon, Twitter, or something else?

    I enter WWW.wjtv.com and click on the magnifying glass, it asks me to use Google, Amazon, Twitter and Wikipedia, which no take me to this site. How / what is the right way to enter an address, then what I do, clique, tomake it go there?

    It is a mobile question. There is only one bar bar/address search.

    In mobile Firefox after typing an address by pressing the Enter key on your keyboard will take you to the address you entered.

  • New computer wants me to combine Skype with the Microsoft account to connect. How should I not do this?

    I have an account to both personal and professional for Skype. I use the business account more. In the process of setting up the account company on my new computer, I asked for the connection information for the Microsoft account. After that, he wants now all merge so I sign in Skyp with connection to Microsoft. I don't want to do that. My business account is actually "owned" by my employer and I want to be able to make sure that everything is separate. How can I work around by using Microsoft information in Skype?

    Thanks for your help!

    Mary Pat

    The only case where Microsoft Account is an absolute requirement is when dealing with the modern app from Skype (metro) for Windows 8/8.1.

    Desktop version, that can be installed on computers Windows 8.1 requires Microsoft account.

    https://support.Skype.com/en/FAQ/FA12162/how-do-i-get-the-desktop-version-of-Skype-Windows-8-or-Abov...

  • When I have completed my email and you want to check the spelling, it says that "language is no longer available for spell check' what should I do for this option

    spell check on windows mail does not work

    Please

    This language is no longer available for spell checking. Please select another in the Spelling Options dialog.

    Change it back.

    1. in the main window of Windows Mail, click Tools
    2. the options
    3 spelling
    4. choose a language except English
    5. apply
    6. choose English
    7. apply

  • I want to put a file that I download and I have a shortcut on my desktop and I would put it on a disc. What should I do for this.

    burn the file on the disk

    burn the file on the disk

    Go to the folder where this file is stored > click this file > in the toolbar, click on burn > pop in a CD in the CD/DVD tray > close the drawer > just follow the guests then. For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

Maybe you are looking for

  • Need help to put keys back on Portege M400

    I removed my SPACEBAR to get something stuck under it, and I can't seem to attach to the right; all the pieces are there, but something not right, and the lower part is blown upward, making it a pain to type. I removed my enter key before and put it

  • Minesweeper is defective

    It's very annoying - you can play game after game Minesweeper without problem and then everynow and again lie and you hit a mine where a mine clearly should not exist...  The number will say 2, but it may have 3 or 4 mines directly around it.  What m

  • How to make a picture that I put on my printer in my computer?

    How to make a picture that I put on my printer in my computer?

  • Windows Vista has stopped working

    I'm trying to fix my moms laptop that has windows vista on it. I can get it to start very well is not the problem. I can sign and take an account, if I open the Task Manager to get to the desktop. In the contrary case, it freezes on the Welcome scree

  • Data is erased after changing the CustomTopMember attribute for accounts

    Hi allWe changed the Custom3TopMember attribute for some basic accounts and deployed the HFM application. After deployment, the existing data are get deleted for these accounts.Please help me understand the reason and the solution to keep data.Thank