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日間に消費されたAeの合計/ 90」を見つけたい。これをSQLで見つけるためのクエリを作成するにはどうすればよいですか。これを解決するのを手伝ってください。
SELECT SUM(Ae)/90 FROM table_name WHERE date_column >= dateadd(day,-90,GETDATE());