Hello Friends,I want to know that how to write a query to display last one hour transcation in a table?If anyone from you guys familiar with it then please help me out guys.
Thanks in Advance!
Sign up for STechies
Hey do you have time stamp/date column in your table?
Yes I have time stamp / date column in my table.
You should select * from table_name as of timestamp (sysdate- interval '1'hour);
Hey go for SELECT acct_id, max(trans_date) as trans_date FROM transactions GROUP BY acct_id;
select * from tablename where trans_date>=sysdate-(1/24); will be your solution.
There is one column lost_ddl_time in 'all_objects' table.
All the site contents are Copyright © www.stechies.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies. The site www.stechies.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity. Information used on this site is at your own risk.
The content on this site may not be reproduced or redistributed without the express written permission of
www.stechies.com or the content authors.