Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Query to delete all records from 3pm to 5pm on 1/3/14

$
0
0

Ok I have a database that I need to Delete all records in the tables between 3pm and 5pm on 1/3/14.  I would like to create a SELECT query first to make sure I am deleting the right data.  I am not sure how to roll in the date and time into the query.  Can someone assist?  Here is the query I have right now.


SELECT * FROM table WHERE date=01/03/2014 

Then I am not sure how to roll in the time.


Thanks


Viewing all articles
Browse latest Browse all 4871

Trending Articles