Date Minus Days

    Date: 08/04/07 (SQL Server)    Keywords: web

    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

    Source: http://community.livejournal.com/sqlserver/62020.html

« Truncation Error || the design ASP.NET site »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home