Which virtual table does a trigger use?

Answer Posted / yoshita

DML triggers use the deleted and inserted logical
(conceptual) tables. They are structurally similar to the
table on which the trigger is defined, that is, the table
on which the user action is tried. The deleted and inserted
tables hold the old values or new values of the rows that
may be changed by the user action. For example, to retrieve
all values in the deleted table, use

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you set the threshold at which sql server will generate keysets asynchronously?

734


This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?

2232


What is an expression in ms sql server?

723


What are the different types of triggers in SQL SERVER?

720


Is it possible to update the views? If yes, how, if not, why?

705






What is difference between inner join and full join?

755


Can you pass expressions to stored procedure parameters?

702


Explain raiserror in sql server?

749


What are system databases into sql server (2005/2008) : sql server database administration

760


what is unique and xaml nonclustered index

772


Explain the creation and execution of a user-defined function in the sql server?

781


Do you know the different ddl commands in sql?

761


can any body tell me how to know the password of current user in sql server

1772


What is the difference between DataRow.Delete() and DataRow.Remove()?

948


Explain what is it unwise to create wide clustered index keys?

702