6 月 (2017 年 6 月 1 日から 6 月 30 日) の Oracle テーブルからいくつかのデータを選択したいのですが、開始日は明日 (9 月 13 日) になります。したがって、以下の形式でクエリを作成しました。
select * from table where column1='Data1' and Column2='Data2'
and trunc(DateTime) between trunc(sysdate-104) and trunc(sysdate-75)
このためのツールがないため、このクエリを確認できません。メモ帳に書いたばかりで、友達に共有したいと思います。
私の質問 -trunc(DateTime) between trunc(sysdate-104) and trunc(sysdate-75)
条件は 6 月 1 日から 6 月 31 日までのデータを提供しますか、それとも構文の問題はありますか?