Magic Tables ?

Answer Posted / rani

Refer this link which nicely demonstrates the Magic Table.
Magic Table are the INSERTED and DELETED tables which we
cannot see from the database, but can be accessed using
Triggers.
When a new row is added an INSERTED table gets created with
the inserted row. Similarly when a row is updated a DELETED
table is created with the deleted row. For update the old
data is moved to the DELETED table and the new updated row
gets created in the INSERTED table.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a not null constraint?

775


What is difference between unique and primary key?

653


What are the disadvantages of merge replication?

967


What is indexing a document?

725


How to convert character strings into numeric values?

779






What have included columns when we talk about sql server indexing?

772


Detail about query optimizer?

801


Do you know what are different types of replication in sql server?

740


How much is a sql server license?

694


What is the New in SQL server 2008?

734


What is attribute relationships, why we need it? : sql server analysis services, ssas

675


What are cursors? Explain different types of cursors. What are the disadvantages of cursors? How can you avoid cursors?

847


what is a traditional network library for sql servers? : Sql server database administration

640


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

724


What is the difference between stored procedure and functions?

783