【问题标题】:A difference of 10 days in Access SQLAccess SQL 相差 10 天
【发布时间】:2021-02-06 06:23:00
【问题描述】:

我想在 Access SQL 中显示在要求的日期前 10 天已经发货了多少订单,但我似乎无法正确使用语法。

SELECT COUNT(*)
FROM Orders
WHERE DATEDIFF(day,RequiredDate,ShippedDate)=10;

【问题讨论】:

  • 你有哪条错误信息?

标签: sql database ms-access datediff date-difference


【解决方案1】:
SELECT Count(*)
FROM Orders
WHERE (((DateDiff("d",[Orders].[RequiredDate],[Orders].[ShippedDate]))=10));

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-08-17
    • 2017-12-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-25
    • 2020-10-08
    • 1970-01-01
    相关资源
    最近更新 更多