Create an auditing policy that keep track of insertion

Assignment Help Computer Engineering
Reference no: EM132174958

Using SQL Developer

Your assignment is to create an auditing policy that keep track of insertion and update activities of Customers table. This Customers trigger fires before update or insert or delete on customers. You have to test your trigger and provide screenshots to prove that it works correctly

D1. Create a new table named Customers. The new table should have at least 5 columns including a primary key. (Cust-id, First_name, Last_name, State, Zip-code. Use cust_id as PK.

D2. Insert 2 rows into the Customers table.

D3. Create a history table for Customers table, (create table customers_history). The table should have same structure as Customers table Cust-id + First_name + Last_name+ State + Zip_code. Don't forget the history_id as pk . Do NOT insert any data (values) into this table.

D4. Create a trigger for auditing-create trigger audit_customers on the Custoners table

D5. Insert 3 records into the Customers table.

D4. Retrieve all rows from customers and customers-history table to verify that rows were added to the Customers table and that the trigger is populating the customers-history table.

D5. Now update the zip code of one customer and check if rows were added to the customers table and that the trigger did populate the customers-history table with the new zip code.

D6. Update the first record of Customers, and then delete this record.

D7. Display the content of Customers table and the history table.

You have to provide the trigger code, code you used to create the table and insert records.

Reference no: EM132174958

Questions Cloud

How do the various components of the lymphatic system : How do the various components of the lymphatic system operate? We have talked about many organ systems.
What parts of the protein is most likely to be an epitope : What parts of the protein is most likely to be an epitope for a B cell? What parts of the protein is most likely to be an epitope for a T cell?
Implement a single object that implements enqueue : If you use my code make sure you are logged in to JSFiddle and you Fork the code over to your own.
Label the name of the enzyme : Draw a diagram of a cell showing the reactions of the urea cycle in the appropriate subcellular locations. Start with ammonium and end with urea.
Create an auditing policy that keep track of insertion : Create an auditing policy that keep track of insertion and update activities of Customers table.
Describe the movements of chromosomes in prophase : Describe the movements of chromosomes in prophase, metaphase, anaphase, and telophase of mitosis?
Write a program to test if a given input string containing : Using Stack ADT, write a program to test if a given input string containing the exactly one character ‘
Calculating n for a study of individuals : Since we are calculating n for a study of individuals, answers should be rounded up to the next whole number.
Devise a section of code that moves all of the integers : Assume startQ contains elements of type int and both evenQ and oddQ are empty. Devise a section of code that moves all of the integers from startQ.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What do you mean by "file type"

What is "File Type" and what are some of the important information to know about it.

  What researchers were surprised to discover with dll file

Write a three to four page paper in which you: Identify what researchers were surprised to discover with Stuxnet's malicious DLL file.

  What visual aids should susan use during her presentation

What are some specific issues and options that Susan should consider in making a decision?

  What is the representation of the exponent

What is the representation of the Sign? What is the representation of the Exponent? What is the representation of the Significant?

  How various faults does windows xp have

Research shows that there are about 5 faults per 1000 lines of code in carefully made programs, that means that 1 million lines of codes will have 5000 faults. Windows XP has approximately 45 million lines of code.

  Determine the address map of the given system

Consider the hardware schematic shown in Figure.

  Discuss about the frequency transformation

For this problem, we are studying the frequency transformation X (co) that transforms the lowpass prototype characteristic into the frequency characteristic.

  What is the difference between a station and a node

What is the difference between a station and a node? What are the main characteristics of a circuit switched network? What are its advantages and disadvantages?

  Identify three best practices in the user domain

It is common knowledge that employees are a necessary part of any business. Identify three best practices in the user domain and suggest the control type(s).

  Express how database processing differs from file

What is e-Commerce? How may e-Commerce businesses be categorized? What are three major issues facing e-Commerce?

  Write an ada code fragment that clears the screen

Using the service package Display_Control, write an Ada code fragment that clears the screen and displays your name in bold, centered on the display screen.

  Find benefits realized by consumers because of the ability

smartphones are some of the most advanced developments in the modern world and this is because of its wide usage among

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd