Ask a Question related to Coldfusion Database Access, Design and Development.
-
Zig Ziglar #1
Query of Queries Case expression
Eventhough I have searched this , I can't find an answer for this
Does queries of queries support the case function?
like this....
<cfquery name="gettotal" dbtype="query">
select SUM(case when getdeals.source = 1 then 1 else 0 end)
from getdeals
order by getdeals.source
</cfquery>
thanks!
Zig Ziglar Guest
-
Need Help with Query of Queries
I have the query "almost" there but I'm not sure exactly how to accomplish this. I need all recrods meeting the criteria from the AppliedLicense... -
Query of Queries
I think that we're using 5 on both environments (not checked that though - they shouldn't be different anyway)... It seems that i've fixed it...... -
Query of Queries in 7.0
I am running MX 6.1 and was wondering of the QofQ problem still exists (in the new version, 7.0) where CF tries to guess at the column datatype... -
Query of Queries on query New type query
In CF5 we have a page that creates a query, using queryNew and querySetCell and the like, we then used dbtype="query" and gave it's name so we could... -
Syntax error in Query Expression,
Hi everyone I have a page on my site in which i wish to display links to brochures, and i have stored an index of these links in my database. ... -
paross1 #2
Re: Query of Queries Case expression
To the best of my knowledge, Q-of-Q does not support CASE as one of its rather limited set of "internal" functions.
Phil
paross1 Guest
-
Adam Cameron #3
Re: Query of Queries Case expression
> To the best of my knowledge, Q-of-Q does not support CASE as one of its rather limited set of "internal" functions.
That's right.
Here's the long and the short of it (CFMX6.0, but hasn't changed, I think):
[url]http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/using_recordsets4.htm[/url]
--
Adam
Adam Cameron Guest
-
MikerRoo #4
Re: Query of Queries Case expression
You can often work around this with crafty use of WHERE clauses and UNION selects.
MikerRoo Guest



Reply With Quote

