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
Solved

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

Posted on 2010-11-23
4
434 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 32

Accepted Solution

by:
awking00 earned 500 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Find results from sql within a time span 11 45
Currency in SQL? 2 30
minium over 4 numeric columns for each row in oracle 2 27
SQL Select in Access 2003 3 22
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
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.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

808 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