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

  Draw an entity relationship diagram for the system

Draw an Entity Relationship diagram for the system and Identify the table design for the database displaying all the fields/attributes. Ensure that all tables are in 3NF. You also need to identify the primary keys and foreign keys, where applicable..

  Design updateable database for storing customer and sales

Design an updateable database for storing customer and sales data. Explain how to deal with the problems of missing data.

  Create microsoft access database

Create a Microsoft Access database. Create the tables, fi elds, data types, and primary key(s) for the database. Create the relationship(s) needed between the tables.

  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.

  Design work breakdown structure for designing database

Design a work breakdown structure for the task below: Designing the database, Working on the website content

  Writing down sql query

Write down the SQL code in order to carrying out the following requests. Display all the data in each of the four tables. Do not display the foreign key columns.

  Drawing entities and relationship using crow-s foot notation

These following questions require to you to create entities and their relationship using the Crow's Foot notation suitably.

  Create entity-relationship diagram for bookstore database

Create Entity-Relationship diagram for a bookstore database, that maintains information about books, professional journals, their authors, and publishers.

  Criteria selecting a life-cycle model for the project

What criteria would you use in selecting a life-cycle model for the project?

  Indicate change to make original premiere products database

Indicate the changes (using the shorthand representation) that you would need to make to the original premiere products database desing to support the following requirements.

  Kinds of joins

It is not uncommon to have to access the data which reside in different tables, especially when formulating a report.

  Gathering information using cross indexed

Using data mining, it is possible to gather information which has been buried that can be manipulated and cross indexed which could be a valuable information gathering technique for entities.

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