CREATE TABLE tl ( joining_date date, experience int GENERATED ALWAYS AS (case when joining_date is not null then age (current_date, joining_date) ) STORED );