I have a set of data that looks similar to this:
What I'm trying to do is create a third field, let's call it length
, which takes the created_date
field and gives you a date field based on created_date + months
So in practicality, that third column would look something like this
But when I try the way I looked up, it gives me an error:
SELECT
DATEADD('month', months, DATE(created_date))
FROM
table
ERROR: function date_add(unknown, double precision, date) does not exist
Hint: No function matches the given name and argument types. You might need to add explicit type casts.
Am I just using the wrong type of syntax and there's a different function I should be using?