Ask a Question related to Coldfusion Database Access, Design and Development.
-
lifeinkorea #1
access to "COMPUTE" aggregate function?
Came across an interesting article about the COMPUTE option in TRANSACT-SQL.
The example given was the following:
SELECT
Prod.ProductId ,
Prod.ProductName ,
Cat.CategoryName ,
Prod.UnitsInStock * Prod.UnitPrice AS StockValue
FROM dbo.Products AS Prod
INNER JOIN dbo.Categories AS Cat
ON Prod.CategoryId = Cat.CategoryId
ORDER BY
Cat.CategoryName
COMPUTE SUM(Prod.UnitsInStock * Prod.UnitPrice)
The results actually return 2 record sets- the first being as expected and the
second being 1 row consisting of the sum. However, if you run it in CF, you
only seem to have access to the first recordset. Is there anyway to access the
second recordset?
lifeinkorea Guest
-
Proj cannot run on LCDS 2.6 ES due to "Unable to resolveresource bundle "datamanagement" for locale "en_US"
hi, all, We have developped an application on Flex Build 3 (run successfully), but failed when we try to deploy it on Tomcat with LCDS 2.5 ES... -
ListContains function sees "10" as "1"
I have a problem with the "ListContains" function. I am building a "thermometer" and coloring the cells based on 3 color lists. The problem is when... -
CFINPUT type="radio" w/ "value" requires "label"
On a Flash form, when you specify type='radio' and value='whatever', the value of the 'value' attribute will be displayed as a label if no 'label'... -
DataGrid Issue: "Cannot compute Count" for AllowCustomPaging
Hello: I am using the techniques mentioned elsewhere for using the DataGrid's custom-paging ability. I have a query that returns only the... -
"Start" "Program" "Menu" list is empty
For what ever reason my list of installed programs in my "Start" "Programs" menu is empty. Anyone know how to restore the list. Thanks for your... -
paross1 #2
Re: access to "COMPUTE" aggregate function?
Put your T-SQL into a stored procedure and called it with CFSTOREDPROC, then you can retrieve both results sets with CFPROCRESULT tags.
Phil
paross1 Guest
-
lifeinkorea #3
Re: access to "COMPUTE" aggregate function?
Cool- works as advertised! Thanks!!
lifeinkorea Guest



Reply With Quote

