I have a access database There are two tables businesses and deals. shops have deals. (one or more) Valid deals are deals that have not expired, AND couponcount < usedcoupons AND are use a valid postcode/zipcode. I require someone to code the expired component of the SQL command. Businesses [shopid], [shopname], [postcode], [phone] ...... Deals [dealid], [dealtext], shopid], [startdate]. [enddate] note: startdate and enddate are datetime data types. Exisitng Code, ASP.NET C# if (category == "all") [login to view URL] = "SELECT shopname, logo, offers, shopid FROM businesses WHERE (activecampaign = '1') AND ((postcode LIKE '" + Session["postcodesensitivity"].ToString() + "') OR (postcode = '0')) ORDER BY ABS(CInt(postcode) - CInt(" + Session["TargetPostcode"].ToString() + "))"; else [login to view URL] = "SELECT shopname, logo, offers, shopid FROM businesses WHERE (catogry = '" + [login to view URL]() + "') AND (activecampaign = '1') AND ((postcode LIKE '" + Session["postcodesensitivity"].ToString() + "') OR (postcode = '0')) ORDER BY ABS(CInt(postcode) - CInt(" + Session["TargetPostcode"].ToString() + "))"; i require someone to edit the existing command to not display a shop record if there are no deals that have not expired. (there exists a deal that the current date is within startdate and enddate) I need this command ASAP.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
ASP.NET 2.0 C# SQL MS ACCESS