I am trying to roder a resultset based on Current date in Sybase ASE. I do not understand how to do that.
select x,date1 from abc where x>y order by date1> current_date
How to use the current date in orderby clause?
I am trying to roder a resultset based on Current date in Sybase ASE. I do not understand how to do that.
select x,date1 from abc where x>y order by date1> current_date
How to use the current date in orderby clause?
明確ではありませんが、以下のクエリのようなことをしたいと思います
SELECT X,date1 from abc
where x>y
and date1 >current_Date --can use getdate() for current date
order by date1
私の間違い、要件を間違えました。Desc または asc で並べ替えてから、データを操作するのが理にかなっています。忙しすぎると基本的なことを忘れがちです。回答ありがとうございます。