Microsoft
Software
Hardware
Network
Question : PL/SQL - how to dynamically retrieve next 5 years from sysdate
Does anyone know to code the PL/SQL required to dynamically retrieve the next 5 years from the current sysdate? So no matter what year it is, the query will always produce the next 5 years from that date.
Thanks.
Answer : PL/SQL - how to dynamically retrieve next 5 years from sysdate
try this. It works for me.
select to_char(add_months(sysdate
,(level-1)
*12), 'YYYY')
from dual
connect by level <= 5
Random Solutions
Searching in Windows 7 Ultimate and Wind 2008 Server how do I search accurately?
OCS 2007 R2 and Cisco call manager
Cisco "Do wr" does not work in "conf t" mode or any other sub-mode
Motherboard driver CD for HCL - P5GD2-TVM/GB/SI
Stolen Laptop Remote Desktop
iphone saying can't connect to server on Exchange 2010 account...
Digital signature control not visible
Sharing Methods Between Applications on the Same Server
Integrating projects
Upgrade Sqlite in RHEL5.4