Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Need to retrieve last one hour records from database

627800Mar 11 2008 — edited Mar 12 2008
Hi I am Srinivas V, I am new to this forum.
I want to retrieve calls done in last one hour.
ONLINE_BALANCE is table name
DATETIME is colomn name
and GROUPID is another colomn name

The query i had written is this
select count(*) as a from ONLINE_BALANCE where TO_CHAR(DATETIME,'MM/DD/YYYY HH:MI:SS') > 'SYSDATE-600/86400';

Suggest me with necessary modification in that

And i want to PUT this in Java Application ,
What should be the format and query

Waiting for the response ..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2008
Added on Mar 11 2008
9 comments
1,457 views