SELECT sum(numlog) FROM table1 WHERE date IN ( '12:04:2007', '12:05:2007', ... up to 500 odd dates)