I have to get records which are updated in last 30 days.
one is a teradata table where i have used the following query
Code: Select all
select * from TERADATA.TABLE1 where upd_date between date-7 and date
the second one is a sybase table where i tried the following query
Code: Select all
select * from SYBASE.TABLE1 where upd_date between current_date-7 and current_date
[IBM(DataDirect OEM)][ODBC Sybase Wire Protocol driver][SQL Server]Invalid column name 'current_date'.
so what is the sybase equivalent of
Code: Select all
where upd_date between date-7 and date
ps: I have never worked on sybase
![Sad :-(](./images/smilies/icon_sad.gif)
Thanks in advance.
Regards,
Raja R P