Hi,
I have already the date difference between 'Start date' and 'End date' but I also want to calculate the date 10 days after the "End date" in a table.
The first line is OK but when I add the second one the result in column 'End date plus 2 weeks' says Invalid date. It also duplicates the rows.
SELECT *, DATEDIFF(day,'Start date','End date')+ " days" as 'Duration' from T1 UNION
SELECT *, DATE_ADD(DAY, 10, "End date") AS 'End date plus 2 weeks' from T1
How can I fix this?
Thanks
Sofie