troubleshooting Question

how can I make a query that can return only rows with 5 minutes behing?

Avatar of hidrau
hidrauFlag for Brazil asked on
Microsoft SQL Server 2005
5 Comments2 Solutions311 ViewsLast Modified:
Hello guys

I have a table where I have a field smalldatetime type.

This table is online feeds and I need to make a query that can return rows that was inserted into this table <= 5 minutes behind.

The field keeps with these information:

Date                                         Xml
2012-07-02 17:52:56.577      44357085000135
2012-07-02 17:53:26.600      44357085000135
2012-07-02 17:53:29.520      44357085000135
2012-07-02 17:53:32.310      44357085000135
2012-07-02 17:53:35.367      44357085000135
2012-07-02 17:54:06.080      44357085000135
2012-07-02 17:54:09.037      44357085000135
2012-07-02 17:54:39.207      44357085000135
2012-07-02 17:55:11.480      44357085000135

Thanks
Alex
ASKER CERTIFIED SOLUTION
Lara F
EA

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

Join our community to see this answer!
Unlock 2 Answers and 5 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 2 Answers and 5 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