Produce different final database state than using trigger

Assignment Help Database Management System
Reference no: EM1360147

Consider the simple relation Employee(ID, salary) storing the employee Ids and salaries, where ID is a key. Consider the following two triggers over this relation:

create trigger T1
after insert on Employee
referencing new as New_Emp
update Employee
set salary = 1.1 * (select max(salary) from Employee)
where ID = New_Emp.ID
for each row

create trigger T2
after insert on Employee
referencing newtable as New_Emp
update Employee
set salary = 1.1 * (select max(salary) from Employee)
where ID in (select ID from New_Emp)
for each statement

Assume that relation Employee has no tuples in it initially. You are to show the simplest example you can think of where using trigger T1 will produce a different final database state than using trigger T2.

Reference no: EM1360147

Questions Cloud

Explain the case study on accelerating ideas to market : Explain the Case Study on Accelerating Ideas to Market and The AIM Process
Determine the rotation rate : Compare these two ratings by determining the ratio of energy.
Illustrate where y is the amount of output the short-run : A firm has fixed cost of 2,000.Its short-run production function is y+4X and one-half, where x is the amount of variable factor it uses. The price of the variable factor is $3,000 per unit. Illustrate where y is the amount of output the short-run..
Compute probability of hedging : Jones Corporation needs 200,000 Canadian dollars in 90 days and is trying to estimate whether or not to hedge this position. Jones has developed the following probability distribution for the C$:
Produce different final database state than using trigger : Assume that relation Employee has no tuples in it initially. You are to show the simplest example you can think of where using trigger T1 will produce a different final database state than using trigger T2.
Traditional triple constraints of time : Traditional triple constraints of time - What are the triple constraints in a Traditional Project Management Framework?
Illustrate what is the basic objective of monetary policy : Illustrate what is the basic objective of monetary policy. What are the major strengths of the monetary policy. Why is monetary policy easier to conduct than fiscal policy in a highly divided national political environment.
Distributed-functions approaches : The fourth theory is the Distributed-Functions Approaches is where the leader helps his group perform acts within a group in order to reach goals.
Common causes and special causes : Common causes and special causes - Describe the terms Common causes and Special causes?

Reviews

Write a Review

Database Management System Questions & Answers

  Essay on data mining in warehouse architectures

Course: data mining. Require a 7 page essay on subjects: Warehouse Architectures: the paper requires to contain information about centralized, federated, and tiered data warehouse.

  Spreadsheet and database

Explain the differences between the storing data in Access and Excel. Why you would use a spreadsheet over the database?

  Baxter aviation database

ER diagram for the Baxter Aviation database

  Relational algebra expressions for names of salespeople

Illustrate relational algebra expressions for names of all salespeople, names of all salespeople having ORDER row and names of salespeople not having ORDER row.

  Transform the tables into one or more tables in bcnf

Transform the tables into one or more tables in BCNF. State the primary keys, candidate keys, and referential integrity constraints.

  Create database to keep information of movies

Create a database for Ray. He is interested in movies and wants to keep information on movies, actors, and directors in a database. The only user is Ray, and he needs to produce reports.

  Analysis of a simple case study

VSS has an existing software package that controls its high bay systems and wants to rewrite it. The existing system is written in C and uses C-ISAM files to store data.

  Explaining uses for views

Views are integral part of virtual private databases, yet views are utilized for many other reasons. Find out many other uses for views.

  Database to keep track of auto sales in car dealership

CAR (Serial-No, ModConsider the given relations for database which keeps track of auto sales in car dealership.

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Explain what is the purpose of database

Explain what is the purpose of Database? The purpose of a database is to store information about certain types of objects. Give an example of two related TABLES.

  Create a database using oracle packaged procedure

Create a database using Oracle packaged procedure

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