"Ken Brocx" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...

>> Does it have a problem in calling "TOP 2" records?  For instance:

> Try
> 
> <Cfquery name="mytest" dbtype="query" maxrows="2">
> SELECT ProductName
> FROM AllPaid
> WHERE ProductID = 5
> </CFQUERY>

Thanks Ken.  And last but not least, how should I treat Yes/No fields in
a QoQ?  For example something like "WHERE ProductID = 2 AND approved =
Yes" causes a "The select column reference [Yes] is not a column in any
of the tables of the FROM table list." error.  Is this a task for
<cfqueryparam>?

Will


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to