ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
What are Magic Table?
 Question Submitted By :: Dinesh Gupta
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What are Magic Table?
Answer
# 1
Update and Delete are the 2 Magic Tables..
 
Is This Answer Correct ?    17 Yes 24 No
Khalid Roshan
 
  Re: What are Magic Table?
Answer
# 2
Ya it's right
 
Is This Answer Correct ?    12 Yes 14 No
Shakila
 
 
 
  Re: What are Magic Table?
Answer
# 3
the magic tables are deleted and inserted.
while we are inserting or deleting a rows into a object the
magic tables were created and after the commit transaction
the tables are removed.so it is called magic tables
 
Is This Answer Correct ?    31 Yes 6 No
Anand K
 
  Re: What are Magic Table?
Answer
# 4
magic table are thouse on which we manuclate on data
 
Is This Answer Correct ?    3 Yes 18 No
Prakash
 
  Re: What are Magic Table?
Answer
# 5
The INSERTED and DELETED tables are the magic tables
anand ur right
roshan and shakila are totally wrong 
prakash u r also wrong
 
Is This Answer Correct ?    19 Yes 6 No
Kar
 
  Re: What are Magic Table?
Answer
# 6
The INSERTED and DELETED tables, popularly known as MAGIC
TABLES.
 
Is This Answer Correct ?    21 Yes 3 No
Sivashankar.soma
 
  Re: What are Magic Table?
Answer
# 7
MAGIC TABLES NOTHING BUT INSERTED AND DELETED WHICH ARE 
TEMPORARY OBJECTS CREATED BY SERVER INTERNALLY TO HOLD 
RECENTLY INSERTED VALUES IN THE CASE OF INSERT,TO HOLD 
RECENTLY DELETED VALUES IN THE CASE OF DELETE,TO HOLD 
BEFORE UPDATING VALUES OR AFTER UPDATING VALUES IN THE CASE 
OF UPDATE.
 
Is This Answer Correct ?    30 Yes 4 No
Durga Prasad.g
 
  Re: What are Magic Table?
Answer
# 8
magic table two part
1)Inserted
 a)Insert
 b)update
2)Deleted
 
Is This Answer Correct ?    7 Yes 14 No
Sandeep
 
  Re: What are Magic Table?
Answer
# 9
suppose if we write a trigger on the table on insert or 
delete or update 

on insertion of record into that table,
inserted table will create automatically by database,

on deletion of record from that table,
deleted table will create automatically by database,

This two tables inserted and deleted are called magic 
tables.
 
Is This Answer Correct ?    8 Yes 3 No
Subbu
 
  Re: What are Magic Table?
Answer
# 10
INSERTED and DELETED tables known as MAGIC
TABLES.
 
Is This Answer Correct ?    17 Yes 3 No
Sandeep Yadav
 
  Re: What are Magic Table?
Answer
# 11
Magic Tables:
Whenever a trigger fires in response to the 
INSERT,DELETE,or UPDATE statement,two special tables are 
created.These are the insert and the delete tables.They are 
also referred to as the magic tables.These are the 
conceptual tables and are similar in structure to the table 
on which trigger is defined(the trigger table).
The inserted table contains a copy of all records that are 
inserted in the trigger table.
The deleted table contains all records that have been 
deleted from deleted from the trigger table.Whenever any 
updation takes place,the trigger uses both the inserted and 
deleted tables
 
Is This Answer Correct ?    4 Yes 2 No
Shailendra Kashyap
 
  Re: What are Magic Table?
Answer
# 12
The magic table is when we "INSERT" a table values that 
values stored into table it's one magic 
and another magic is "DELETE" when we DELETE the values in 
a table the compiler delete the values whatever you are 
stored

@)INSERT

@)DELETE
 
Is This Answer Correct ?    5 Yes 0 No
Anilkumar,bijapur
 
  Re: What are Magic Table?
Answer
# 13
Magic tables are created when data is inserted or updated 
in the normal tables. They get deleted when the commit is 
done. They are used for the auditing purposes.
They are useful in keeping track of the insertion and 
updation on the database.
 
Is This Answer Correct ?    3 Yes 0 No
Manish Kumar
 
  Re: What are Magic Table?
Answer
# 14
There are 2 Magic Tables in SQL server Inserted and Deleted.
These are mantained by SQL server for Internal processing 
whenever an update, insert of delete occur on a table. 
However, we can refere these tables in a Trigger.
Whenever an update table statement is fired SQL server 
mantains the  original row before updation in a deleted 
table and New (updated )row in a Inserted Table.

Same is the case when an insert is fired Only Inserted 
table is populated with inserted Row.
and when Delete table statement is fired Deleted table is 
populated with the deleted row.
 
Is This Answer Correct ?    7 Yes 0 No
Imran Badrampalli
 
  Re: What are Magic Table?
Answer
# 15
show me where Microsoft write about magic table?
This is just interview question that u guys ask.
 
Is This Answer Correct ?    0 Yes 0 No
Sonu
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
can you any body tell me suppose database is suspect mode. how can take to normal? Teledata1
write down the code for "how we delete a table without using of Drop command " ? Sonata2
can we call functions from stored procedure in SQL Server 2005 ? How?  2
event classes in sql server Accenture1
What are the steps you will take, if you are tasked with securing an SQL Server? HCL1
write the query for taking database backup in sql Logica-CMG6
How to find the date and time of last updated table?  3
What types of integrity are enforced by a foreign-key constraint  1
What is the difference between login and a user? TCS7
What is lock escalation?  1
what is maximum size of temp db? iSoft4
What is the purpose of using COLLATE in a query?  1
WHAT IS TRIGGERS IN SQL? AND WHAT IS THE BENIFIT?  5
Why we need a group by clause?  3
How do I compare two values when one value(data type) is char and the other is an integer?  3
what purpose does OPENXML clause have in sql server stored procedure?  1
I need a query that retrieves info from an Oracle table and a query that retrieves info from a SQL Server table. The info has to be joined together according to Record ID numbers. I have very limited access to the Oracle database but full control of the SQL Server database.How do I join two different queries from two different databases?  1
What is the difference between 2-Tier architecture and 3-Tier architecture Oracle10
When you first load SQL SERVER you will startup with what all databases? CompuSol3
1.what is the purpose of using alias name in sql server? with certain example? 2.what is cursor?will u plz explain me in detail with certain example?  3
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com