Well, the error message is pretty clear. The idea of “summing” strings just doesn’t make sense. If numbers are really being stored in a string representation, just use cast:
select sum(cast(column as float))
More Related Contents:
- How to create a specific SQL Server stored procedure? [closed]
- Passing a varchar full of comma delimited values to a SQL Server IN function
- SQL update query using joins
- Difference between numeric, float and decimal in SQL Server
- T-SQL: Deleting all duplicate rows but keeping one [duplicate]
- Querying data by joining two tables in two database on different servers
- SQL: IF clause within WHERE clause
- “CASE” statement within “WHERE” clause in SQL Server 2008
- SQL Server – How to lock a table until a stored procedure finishes
- Where value in column containing comma delimited values
- How to use table variable in a dynamic sql statement?
- How to create a unique index on a NULL column?
- Search text in stored procedure in SQL Server
- What happens to an uncommitted transaction when the connection is closed?
- Create Trigger to log SQL that affected table?
- Difference between datetime and timestamp in sqlserver? [duplicate]
- Sequence vs identity
- Cannot use UPDATE with OUTPUT clause when a trigger is on the table
- SQL grouping by month and year
- “IN” clause limitation in Sql Server
- Meaning of square brackets [] in MS-SQL table designer? [duplicate]
- Reference an alias elsewhere in the SELECT list
- Selecting first row per group
- How do I specify date literal when writing SQL query from SQL Server that is linked to Oracle?
- SQL Server Convert integer to binary string
- How to find column names for all tables in all databases in SQL Server
- SQL Row_Number() function in Where Clause
- SQL update trigger only when column is modified
- Passing dynamic order by in stored procedure
- Export table data from one SQL Server to another