Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Delete between dates on multiple columns

$
0
0

I would like to delete any records that are found BETWEEN say "2003 to 2008" . The fields below are of of a DATE/TIME type so I would like the query (shown below) to delete any record that is found "01/01/2003 00:00:00" AND "01/01/2007 00:00:00". My query isn't running HELP where am I going wrong?   

use AMS_SYSTEM

DELETE * FROM tblasset

WHERE DateScrapped,
DateRecieved,
DateInstalled

BETWEEN

"01/01/2003 00:00:00" AND "01/01/2007


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>