Mornin' everyone
I know I've seen a couple of articles dealing with dates in SQL, but I am
going nuts in trying to locate them.(Some would say I'm already there)
Anyway, what I have is a file with a timestamp as one of the fields on the
record showing the date that the record was created. What I want to do in
SQL, is obtain todays date as a timestamp, subtract 1 week (7 days) from
that date and make that timestamp be midnight on that, then delete all
records on the file with a timestamp of less than the calculated timestamp.
If anyone can either help me out as to how to obtain todays date in SQL, it
would be much appreciated.
Thanks in advance



Alan Shore

NBTY, Inc
(631) 244-2000 ext. 5019
AShore@xxxxxxxx

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.