This is my Technical area of troubleshooting and learning new Programming skills and many more. Here you will find answers for many new technologies like asp.net 2.0/3.5,4.0 C# access, mysql, Amazon Webservice ,Sql-server, JD Edwards, SAS, Salesforce, APIs, MVC and many more. please visit & discuss.
Thursday, March 30, 2017
Convert Julian date to Calendar date PL SQL Oracle
select YADOB DOB,
CASE
when YADOB = 0 Then TO_CHAR(TO_DATE(SUBSTR (YADOB,2,5),'YYDDD'),'YYYY-MM-DD')
when YADOB < 100000 Then TO_CHAR(TO_DATE(YADOB+1900000, 'YYDDD'), 'MM/DD/YYYY')
when YADOB > 100000 Then TO_CHAR(TO_DATE(YADOB+1900000, 'YYDDD'), 'MM/DD/YYYY')
ELSE '0' end JulianDT
from proddta.F060116
By Shyamini Nair
Subscribe to:
Posts (Atom)