Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
anarkist
Starting Member
1 Post |
Posted - 2005-05-25 : 04:04:35
|
HelloI'm trying to create a report.Problem :The Data are stored in to a tbl as CHAR dataI was able to CAST the CHAR data in to NUMERICSelect CAST (column_name*1 as numeric) as numval wfrom tbl_namewhere udf_id = 153This give me out a column named "numval" with all data i wish in numeric formatNow i wish to summ this dataAny Idea on how to tell now to sum all data from the "numval" column?I tried with the COMPUTE SUM , but it returns with cannot find "numval" columnMany thanks for suggestions |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-05-25 : 05:35:29
|
Select sum(numval) from(Select CAST (column_name*1 as numeric) as numval wfrom tbl_namewhere udf_id = 153) TMadhivananFailing to plan is Planning to fail |
|
|
|
|
|