Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting numeric format on a subtotal

Status
Not open for further replies.

ifntech

Programmer
Nov 4, 2004
80
US
I'm subtotalling in SQL Server in a query and then post that to a graph.
The graph is saying it is not a number value.
What is the sql code to set the "sum(value) as totalvalue" to a numeric type.

Thanks Dan
 
(sum(value) as totalvalue) as numeric

[Peace][Pipe]
 
I get an "incorrect syntax error near keyword as" now with that change



 

I got this to run
convert(numeric(12,2),SUM(fieldname)) AS Number1


but when I try to calc off of two of them.

<% comp=((macro.table("Number1").value)/(macro.table("Number2").value))%>
<%=comp%>

I get a Microsoft VBScript runtime error '800a000d'
Type mismatch
error
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top