troubleshooting Question

sql help with date

Avatar of welcome 123
welcome 123 asked on
DatabasesMicrosoft SQL ServerSQL
25 Comments1 Solution490 ViewsLast Modified:

Table has two columns

Create table temp1
col name varchar 20,
DATE_EFF_TO timestamp 8

I want filter records and fetch  only those records whose timestamp has date June 7th 2013.

I gave the following query but it didn't fetch any records for this date:

 WHERE to_date(DATE_EFF_FROM)=2013/06/07'

can you please give me the correct query to fetch only those rows whose value for June 7th 2013.

using Sybase but looks like any sql using sqlserver works in Sybase right?
Thanks in advance.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 25 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 25 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros