Hi,
Can you please tell me how do I write this logic in PL/SQL. I have 2 date fields: date1 and sysdate. I need to pull all records from tableA where the difference between the years from the 2 dates should be <= 3
In sql you would write as
select * from tableA
where datediff(yy,date1,getdate()) <= 3.
Thanks
Can you please tell me how do I write this logic in PL/SQL. I have 2 date fields: date1 and sysdate. I need to pull all records from tableA where the difference between the years from the 2 dates should be <= 3
In sql you would write as
select * from tableA
where datediff(yy,date1,getdate()) <= 3.
Thanks