skibascott
IS-IT--Management
I am trying to create a query that will pull all records that have not expired. I have a field called enddate, formatted mm/dd/yyyy. I need to compare this field to today's date and select all of the records that are less than or equal to the enddate. Is this possible? Here is my code:
Thank you.
Code:
<ROOT xmlns:sql="urn:schemas-microsoft-com:xml-sql">
<sql:query client-side-xml="0">
SELECT WatchDocLink.docnumber,WatchDocLink.watchnumber, WatchDocLink.enddate
FROM WatchDocLink
WHERE ????????????????????
ORDER BY WatchDocLink.docnumber,WatchDocLink.watchnumber
FOR XML AUTO
</sql:query>
</ROOT>
Thank you.