I have two table that connect each other. I want it if first table value change it will change value of second table automatically. Any Magic Code for this problem.
this is my first table:
First table:
TIMESTAMP Status
1/29/2013 08:00 0
1/29/2013 08:30 0
1/29/2013 09:00 1
Second table:
Status DATETIME_INPUT
0 1/29/2013 08:00
0 1/29/2013 08:30
First table control second table, I want every time I add input too First table,
It will automatically change Second Table too.
For example I add last row in First Table but it not change Second Table, I want it
AUTOMATIC CHANGE
Please give some solution
Here is a very basic trigger to insert data in your second table as it gets inserted in your first table.
Take a look here to see some additional information:
http://msdn.microsoft.com/en-us/library/ms189799.aspx
Good luck.