Solved

** Need Oracle Date Function to return records with seconds too

Posted on 2010-11-23
4
432 Views
Last Modified: 2013-12-07
Hello,
I have a table column in date/time format.

How can I query for all records with CALL_DATE = 10/11/2010?

If I use  WHERE CALL_DATE = TO_DATE('10/11/2010', 'mm/dd/yyyy')
Then I only get records with CALL_DATE = 10/11/2010  00:00:00
I need to get all the other times of the day.

Is there a way to do this using the above syntax, or do I have to use BETWEEN?

Thanks!
0
Comment
Question by:dunkin1969
  • 2
4 Comments
 
LVL 31

Accepted Solution

by:
awking00 earned 500 total points
Comment Utility
WHERE TRUNC(CALL_DATE) = TO_DATE('10/11/2010','mm/dd/yyyy');
0
 

Author Comment

by:dunkin1969
Comment Utility
THANKS !!!!!
0
 
LVL 31

Expert Comment

by:awking00
Comment Utility
You're most welcome.
0
 
LVL 17

Expert Comment

by:sweetfa2
Comment Utility
where to_char(call_date,'mm/dd/yyyy') = '10/11/2010'
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now