Click here to Skip to main content
15,891,863 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
kindly provide the query.It is very urgent to know can we have a single query for the above mentioned work or not?
Posted

yes you can use a delete trigger and on that trigger insert the data to the table.
 
Share this answer
 
v2
Or you could just use a stored procedure.
 
Share this answer
 
sapagk wrote:
.It is very urgent

Yet you have not taken any time to learn basic SQL, bought any books on SQL, done any online searches, created any code to show us as a starting point, etc. How could it be urgent ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900