troubleshooting Question

sql help with date

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

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:

SELECT * FROM temp1
 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.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 25 Comments.
Join the Community
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