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
);
I'm getting an error here, anyone knows what is the problem here.
Note: I'll close this question as soon i got an answer, pls don't close it without giving an answer.