I have a table ProviderValueCard. Is it possible to set up a default constraint to when a new row is created, if column SessionsProgress is > 0 then automatically set the value of the entry for column SurveyCompleted = 1 and set it = 0 if SessionProgress = 0?
So psedo: If SessionsProgress > 0, then SurveyCompleted = 1 else SurveyCompleted = 0
I got the idea from marc_s answer on this question: Automatically inserting datetime with insert