[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

esql does not handle to_date function in SQL

Subject: esql does not handle to_date function in SQL
From: "Ibeling, Narisa" <narisa.h.ibeling@xxxxxxxxxxxxx>
Date: Thu, 31 Oct 2002 14:06:57 -0600
to_date sql
Hi, there.

Here is my xml source:

<sql:execute-query xmlns:sql="http://apache.org/cocoon/SQL/2.0">
        <sql:use-connection>personnel</sql:use-connection>
        <sql:query>
           select count(pt)
            from adv_7760$rollsnap.thro 
            where study = 'ADV_7760'
            and vpos = 'aortic'
            and to_date(event_date,'yyyymmdd') - to_date(implant_date,'yyyymmdd') <= 30 
            and thrombosed_etiology = 'primary event'
        </sql:query>
</sql:execute-query>

I am using cocoon to transform the results into xml.  My problem is cocoon is confused with to_date function.  It cannot process the query.  If I take the line with the to_date function, it works.  Is there any way I can accomplish the query in other ways?

Thanks in advance for your help.

Narisa Ibeling
Medtronic Cardiac Surgery



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.