>Are you testing this query in oracle, or just from your cf output? Also, are >you expecting that Oracle will order the numbers in the varchar2 field as >numbers? It won't happen. Varchar2 fields are ordered by ascii or unicode >character number, I believe, which is why they're case sensitive.
It sounds like your saying that because it's a case-sensitive field, the correct ordering is "a" "d" "A" "D". Surely there's a way to have case-insensitive ordering, right? If the problem is that it's a varchar2 field, then is there another type of field that I can make it that's case-insensitive, but still a string-oriented field so that I can store agency names? >Try running just the inner query in an oracle client. Get the results you >expect? No? Then, somethings going on there. I wish I had access to the Oracle tools, though I have no idea what's available. Our webhosting department has declared them off-limits and I've come to accept that. Shame too, because I believe that I could learn alot off of query building that way and refine other db skills. So, I'm going off the cfoutput results. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192069 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

