>Looking at the query: > >select menuId, label, foundOn >from dbo.menu >where menuId IN ( > select foundOn > from dbo.menu > where menuId=#form.selTopLevel2#) >order by menuId > >would indicate that FoundOn is a varchar type field and menuid is an >integer. Perhaps you rewrite the query to match where foundOn IN () >though to be honest I'm not sure why you're doing a subquery. > >Hatton
FoundOn is text datatype. The reason i doing this way because foundOn contains the list of menuId and i need to select only those where menuId is equal 52. So how can i convert the subquery which will retrieve the int datatype ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299501 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4