Cause NULL is not a value per say it would work if it were <> 'NULL' assuming NULL is in the column.
-----Original Message----- From: daniel kessler [mailto:[EMAIL PROTECTED] Sent: 06 July 2005 12:30 To: CF-Talk Subject: Re: Query help >On 7/5/05, Daniel Kessler <[EMAIL PROTECTED]> wrote: >> an empty string. So I've adjusted the query so that if the store = >> 'convenience' then the price must not equal empt string. >> >> AND cs_price <> <cfqueryparam cfsqltype="cf_sql_varchar" value=""> > >AND cs_price IS NOT NULL this worked great! thanks! but why? IOW, why does this work, but these do not: AND cs_price <> NULL AND cs_price != NULL And thanks for the discussion about when to use cfqueryparam. I suppose I knew that at some point but in the haste of implementation, I threw it in. Good to remember the proper time to use something. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:211242 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54