Quantcast
Viewing all articles
Browse latest Browse all 9052

Re: how to identify delta based on timestamp column

Also I had already tried that where clause for extracting delta.
I have a column of data type timestamp. So I used below where clause.

 

TO_CHAR((TO_DATE(PRODUCT.LASTUPDATEDON,'DD-MON-YY')),'DD-MON-YY') =
TO_CHAR((TO_DATE(SYSDATE(),'DD-MON-YY')),'DD-MON-YY')

 

Its generating below sql statement at the backend and giving me error.

WHERE (lower(to_char(to_date( "PRODUCT"."LASTUPDATEDON",'DD-MON-YY'),'DD-MON-YY')) = lower(to_char(to_date(sysdate,'DD-MON-YY'),'DD-MON-YY')))


<ORA-01830:picture ends before converting entire input string>

 

I tried many permutations combinations using TO_DATE and TO_CHAR. It just doesn't work.


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>