There are 2 columns Age and Date of Birth in the table
How can i change automatically Age column according to Date of Birth when the year changed. ?
I searched and find that is solving with trigger but i dont know how to do it with trigger.
There are 2 columns Age and Date of Birth in the table
How can i change automatically Age column according to Date of Birth when the year changed. ?
I searched and find that is solving with trigger but i dont know how to do it with trigger.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ryan AlfordRank #1,411 · 1.2K reputationPosted Mar 31, 2008, 10:06 AM EDT
here are a couple of good articles on creating triggers.
http://www.15seconds.com/issue/041006.htm
http://www.developer.com/db/article.php/3552096
http://www.sql-server-performance.com/articles/audit/ddl_triggers_p1.aspx