Hi,
I have a column in Oracle view below
COLUMN_NAME :- UPDATEDDATE
DATA_TYPE:- DATE
I want to fetch last 2 hours data using UPDATEDDATE column in to our table.
Sample value of data UPDATEDDATE ='2022-07-06 18:46:24.0000000'
While receiving data from View in our table we have same column name UPDATEDDATE column with datetime data type.
Please help in fetching data with out loosing any data from View to table
the way i am fetching data like below
where TO_CHAR(UpdatedDate,'YYYY-MM-DD HH:MI:SS') >= TO_CHAR( sysdate - 2/24, 'YYYY-MM-DD HH:MI:SS' ) order by UpdatedDate desc