<cfset myMonth = 9 />
SELECT aDATE, DATEcol, VALUEcol
FROM aTABLE,
(
<cfloop index="i" from="1" to="#daysinMonth(tmpMonth)#">
<cfif i is 1>
SELECT TO_DATE('#myMonth#/#i#/2005', 'mm/dd/yyyy') aDATE FROM
DUAL <br />
<cfelse>
UNION SELECT TO_DATE('#myMonth#/#i#/2005', 'mm/dd/yyyy') aDATE
FROM
DUAL <br />
</cfif>
</cfloop>
)
WHERE aDATE = DATEcol (+)
ORDER BY aDATE
On 11/3/05, Ian Skinner wrote:
> So, if I was passing in date values from CF, is there a way to simplify the
> to_date stuff? Do I need to?
>
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> Confidentiality Notice: This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223128
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54