GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Database  >  SQL Server

 Print  |  
Question:  Can we generate a trigger for two tables? if so what is the query to generate a trigger for two tables employee table and department table with employee having department no.



June 06, 2006 14:44:58 #1
 sree   Member Since: Visitor    Total Comments: N/A 

RE: can we generate a trigger for two tables? if so wh...
 

We can't

In a trigger we can't specified two table name

that means

CREATE TRIGGER < > 
ON <{ table | view }> 

{
    { { FOR | AFTER | INSTEAD OF } { [ INSERT ] [ , ] [ UPDATE ] }
CREATE TRIGGER trigger_name
ON { table | view }
[ WITH ENCRYPTION ]

expecting justification on my answer

     

 

Back To Question