Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的表中有一个名为 Ae 的字段。我想找到“过去 90 天/90 天消耗的总 Ae”。如何编写查询以在 sql.xml 中找到它。请帮我解决这个问题。
SELECT SUM(Ae)/90 FROM table_name WHERE date_column >= dateadd(day,-90,GETDATE());