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

  Convert the er/eer model

To represent a problem description given in natural language as an (Enhanced) Entity -Relationship model; to convert the ER/EER model into a relational data model;

  Population of alligators on the kennedy space

In 1970 the population of alligators on the Kennedy Space Center grounds was estimated to be 300. In 1980 the population had grown to an estimated 1500. Using the Malthusian law for population growth, estimate the alligator population on the Kenne..

  Computer science assistance

Look up the altitude of a Globalstar satellite on the Internet. Use Kepler's formula to check the accuracy of a given period and altitude for a Globalstar satellite. Use the following exponent calculator to estimate the period.

  Populate the tables with test data

Credit will be given to queries that are not trivial, for example, "SELECT * FROM Tablename" is unlikely to gain more than one mark. SQL Developer can be used to produce the queries and populate the tables.

  Assignment related to sql programming

Define a one-to-many relationship between the Customer table and Orders table. Right click in the window and select Show table. Select the referential integrity option and both cascade options for the relationships. Save the relationship.

  Using the oracle developer data modeler tool

Credit will be given to queries that are not trivial, for example, "SELECT * FROM Tablename" is unlikely to gain more than one mark. SQL Developer can be used to produce the queries and populate the tables.

  Assess emerging cyber security approaches

Write an 18 page (or longer) paper in which you identify and assess emerging cyber security approaches and technologies as well as discuss government efforts to nurture the development of these emerging technologies.

  To determine if the application is calculation properly

Make sure the number of units for each package is numeric, and is not negative.

  Create simple reports in an oracle database

laboratory provides practice in the use of SQL commands to create simple reports in an Oracle database

  Calculate days between ordering and shipping

Calculate the Tax on an Order, Calculate the Total Shopper Spending - Develop a SELECT statement using the BB_SHOPPER table to produce a list of each shopper in the database and his or her respective totals.

  Write a trigger and two test sql statements

Write a trigger and two test sql statements. The first statement should succeed and the second statement should fail (i.e., the second statement violates the constraint and your trigger must block it and issue an error message).

  Script below to create an updateable

Use the script below to create an updateable view named balance_due_view. Then, create and test an INSTEAD OF trigger named invoices_instead_of_insert that lets the user update the columns in the view by directly updating the Invoices table.

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