I have two tables EMP1&EMP2 both having same fields if any updations made in emp1 how to reflect on emp2

Showing Answers 1 - 19 of 19 Answers

chitra

  • Oct 24th, 2006
 

try to write update/delete/insert trigger on emp2 which will fire on updation/deletion/insertion in emp1

  Was this answer useful?  Yes

ravi

  • Jan 3rd, 2007
 

Using Joins we can update the fileds.

use alias names for common fields which r present in Emp1 and Emp2

 If Emp1 and Emp2 have  common  fields namely field1,field2 then: 

 update E1.field1,E2.field1 from Emp1 E1,Emp2 E2 where E1.field1=E2.field2

  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