Write a sql query to reflect changes made in one table if u have two tables Emp1& Emp2.

Questions by prasad7777

Showing Answers 1 - 2 of 2 Answers

with triiger we can do this......but in sql there is no such thingbut we can do it by viewfor example emp1 is a table and emp2 is view .if you iinsert rows into view tht may maynot reflect in the base table

  Was this answer useful?  Yes

Mad Hatter

  • Nov 6th, 2008
 

For example, if tables Emp1 and Emp2 both have identical structure, and some changes were applied in them, then MINUS can show the difference. Like
select *
from Emp1
MINUS
select *
from Emp2
UNION
select *
from Emp2
MINUS
select *
from Emp1

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions