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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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