I have 2 tables:
Customer: customerid - int, pri-key,auto fname - varchar sname -varchar housenum - varchar street -varchar
Items: itemid - int,pri-key,auto type - varchar collectiondate - date releasedate - date customerid - int
EDIT I need a query which will get me all items that have a releasedate of 3 days into the future, including today
i.e The query should return customerid,fname,sname,street,housenum,type,releasedate for all items which have releasedate of today or 3 days into the future.e.g, if todays date was 2010-12-24, and an item has release date of 2010-12-25 then it would be returned ion the query.
The idea is that if an item is due for release (today or 3 days ahead of today) then it will show this. thanks in advance