Compare results before and after running the trigger

Assignment Help PL-SQL Programming
Reference no: EM131210612

Module Triggers

Module Overview

- In this module you will learn how to write PL/SQL and T-SQL triggers

Objectives

After completing this module you will be able:

- to develop, test and debug Oracle PL/SQL triggers
- to develop, test and debug MS SQL Server T-SQL triggers

Lab

You have to run every script in this module and understand each line of code before you can start this lab assignment.

Q1: Refine the Example 4 from PL/SQL in way so that updating does not change value of ID column. Provide a screenshot of your trigger with compilation results.

Test the trigger with the following queries with expect the following result.

Q2: You would revise a trigger created in Example 2 of T-SQL. Frist, drop the transTrigger then redefine just like before, except when adding balance in account, 10% interest would be added up on the old balance. See formula below:

balance=balance*1.1 + @amount

You need to provide the code of your trigger, with screenshot of compilation.

To test you need to issue the following command:

2030_Figure1.jpg

You can compare your results before and after running the trigger:
Before

1688_Figure3.jpg

You will need to make some changes to generated code before you can run it in Oracle.

Feedback:

Difficulty (-2 - too easy ... 0 - just right ... 2 - too hard)
Interest level (-2 - low interest ... 0 - just right ... 2 - high interest)
Time to complete (min):
Suggestion to improve (if any):

Attachment:- Procedural_SQL_PartIII.rar

Reference no: EM131210612

Questions Cloud

Company selection and initial research : Assignment: Inventory Analysis and Final Project: Company Selection and Initial Research Part One: Inventory Analysis
Can tom prevail in a breach of contract action : Legal Environment and Corporate Governance Can Tom prevail in a breach of contract action against Ritz? Critically discuss using case law to illustrate your points - Is the assignment by Ritz to CreditCo effective? Critically discuss using case law t..
Global currency markets : How does the Chinese government limit the use of the Chinese currency, the RMB, on the global currency markets?
Rate of return on investment : This firm paid a dividend of $13.5 cents per share during the year. What was the return ($) to holding Omega's shares during 2015? What is the rate of return on investment?
Compare results before and after running the trigger : You can compare your results before and after running the trigger - You will need to make some changes to generated code before you can run it in Oracle.
Develop a new textbook : A publishing company is trying to decide if it pays to develop a new textbook. The new textbook will be completed and ready for sale in 3 years.
What should be done if there are no other resources : What should be done if there are no other resources? Should we consider the implications of this type of resource over the benefit? Please share your thoughts on these issues.
Draw a production possibilities curve to graphically show : Draw and use a production possibilities curve to graphically show and verbally explain to the subcommittee members the opportunity cost at a point in time of expanding any one of the programs.
What would it cost in dollars to purchase : What would you receive in dollars if you sold PZ 5 million at the spot rate? - What would it cost in dollars to purchase PZ 20 million forward three months. When would you make payment?

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

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