I have a Boolean column in my database called: IS_SUBMITTED that is by default set to False.
What I would like to do is to have another column in the database called TIME_SUBMITTED that is set to Null by default, but when IS_SUBMITTED is set to True, TIME_SUBMITTED is updated with the current timestamp.
Is this possible to implement? I image it may involve the use of a trigger but I'm quite new to Db2 and I can't quite seem to get it working properly.
Cheers