これは私の質問です:
SELECT [id],[reasoncode],
[jan], [feb],[mar],[apr],[may,[jun],
[jul],[aug],[sep],[oct],[nov],[dec] from table
今私が知りたいのは、これ以外にWHEREを使用して0をフィルターで取り除く別の方法があるかどうかです。
SELECT [id],[reasoncode],
[jan], [feb],[mar],[apr],[may,[jun],
[jul],[aug],[sep],[oct],[nov],[dec] from table
WHERE
[jan] <> 0 and
[feb] <> 0 and
[mar] <> 0 and
[apr] <> 0 and
[may] <> 0 and
[jun] <> 0 and
[jul] <> 0 and
[aug] <> 0 and
[sep] <> 0 and
[oct] <> 0 and
[nov] <> 0 and
[dec] <> 0
from table
提案?
- - - アップデート
すべての行がゼロの場合にのみ、その行を除外したいと思います。これは私が処理しなければならないデータであるため、利用可能な「月」列はありません。