in oracle this should work:
select * from table1 where trunc(theday)=trunc(sysdate-7 )
but I believe its database dependent.
sysdate is the current date + time
trunc if applied to a date sets the time to 0:00:00
HTH
Spieler
PS: Do not crosspost ... sql question if you have to post
them on jdc belong in the jdbc forum