我有表A和数据。在查询中,需要计算需要为DATE + Num of Days的结束日期。我试过这个,但它无法使用:
DATEADD (day,NumOfDays,Date)
有表A:
+--------+------------+-------------+
| XPK | Date | NumOfDays |
+--------+------------+-------------+
| 1 | 2005-11-12 | 2 |
| 2 | 2007-07-14 | 3 |
| 3 | 2000-04-22 | 4 |
+--------+------------+-------------+