I using postgres sql.I doing a query to calculate the estimated end date from start date and duration (minutes|hours|days|months|etc). The duration can be in minutes|hours| days|months .
i try to use dateif but it work if we know the start date and end date.
I expecting to get the estimated end date from start date and duration (minutes|hours|days|months|etc)
please help me thank you and have a nice day
2
Answers
I don’t have issue to calculate the date and time. I use ‘interval’ to get result.
Are you just want to calculate the time? Or is there another issue?
Many way you can do.
This way you read out the interval from another table:
Support table you can add one column where you just type in the interval, so not need to change in the code.