Top.Mail.Ru
? ?
SQL Server's Journal

> recent entries
> calendar
> friends
> microsoft.com/sql
> profile

Saturday, August 4th, 2007
6:35p - Date Minus Days
I am making a project intranet page and I need to pull up a section of tasks that have been completed in the last week and currently have it only pulling the last 10 items on the webpage with the following code, any more efficient suggestions?

SELECT *
FROM tasks
WHERE complete = 'y' AND
comp_date < current_timestamp

(4 comments |comment on this)


<< previous day [calendar] next day >>
> top of page
LiveJournal.com
Image