?
Solved

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

Posted on 2010-11-23
4
Medium Priority
?
440 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 32

Accepted Solution

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

Author Comment

by:dunkin1969
ID: 34198657
THANKS !!!!!
0
 
LVL 32

Expert Comment

by:awking00
ID: 34198672
You're most welcome.
0
 
LVL 17

Expert Comment

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

Featured Post

Python: Series & Data Frames With Pandas

Learn the basics of Python’s pandas library of series & data frames and how we can use these tools for data manipulation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Suggested Courses

801 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