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?
not clear but i guess you want to do somemthing like below Query
SELECT X,date1 from abc
where x>y
and date1 >current_Date --can use getdate() for current date
order by date1
My mistake, i got the requirements wrong. it makes sence to just sort in Desc or asc and then work with the data. sometimes I tend to forget basic things when i am too busy. Thank you all for the responses.