Recordset where date is 90 days or older.
Hello,
I am trying to build a recordset from a MSSQL database of records where c.date is 91 days or older. It's been 3 years since I touched Coldfusion so my code below is a little rusty....
<cfset todayDate = Now()>
<!--- Populate Open Quotes --->
<cfquery name="Quotes" datasource="quote">
SELECT q.qid, q.cdate, q.name, q.region, q.cuid, q.quid, q.status, c.company,
c.sitecity
FROM quote q, customer c
WHERE q.status = 'open' AND q.cuid = c.uniqueid AND q.cdate < (<cfoutput>#todaydate#</cfoutput>-90)
ORDER BY cdate
</cfquery>
Any help on this would be greatly appreciated.....
Thanks In Advance.
Gary
