I have a query that's something like this
select days, date(date_event) + interval '10' day from tbl_user_marketing_program as programtable
Now in place of the '10', I want to add the value present in the "days" column. How can I do that?
I tried select user_id, date(date_event) + interval user_id day from tbl_user_marketing_program as programtable
then I got the below error
ERROR: syntax error at or near "day" LINE 1: ...ect user_id, date(date_event) + interval user_id day from t...