Posted on: 8/6/2014 5:36:19 AM | Views : 569

I have two table 1. Holiday 2. Attendance.
When I insert the record    in holiday table for his  advance holiday   with empid, the same time I want to insert it attendance table  automatically for the same date using a trigger
Insert into attendance (empid,date,holiday) values (20078,07/10/2014,1). If holiday column value 1 represent holiday marked,  0 represent  holiday not marked. The same thing can happen vice versa
If employee mark his current attendance as  holiday through attendance,  it should   be  inserted into holiday table  automatically using triggers.
Insert into  Holiday (empid,date,holiday) values (20078,06/08/2014,1). If holiday column value 1 represent holiday marked, Go to the complete details ...