由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - SQL multiply all values of a column in table (转载)
相关主题
SQL find distinct values in large tableHelp on Sql server huge table performance
SQL fast search in a 10 million records table (转载)Help! A cluster method in SQL
Oracle Group and Index question请教SQL server的一个programming的问题,谢谢
SQL combine two columns from two different tables no shared (转载)SQL问题请教: add one more column
请教ssisSQL Server table variable 的一个问题请教。
Table Merge (SQL Server)In MySQL, 如何在procedure里create trigger?谢谢了?
初级问题很弱的Oracle问题
help about SQL for ACCESSSQL Server Trigger on System Base Table or Catalog View
相关话题的讨论汇总
话题: sql话题: table话题: column话题: multiply话题: values
进入Database版参与讨论
1 (共1页)
l******9
发帖数: 579
1
【 以下文字转载自 Quant 讨论区 】
发信人: light009 (light009), 信区: Quant
标 题: SQL multiply all values of a column in table
发信站: BBS 未名空间站 (Wed Jun 25 17:35:13 2014, 美东)
I need to multiply all float values of a column in table if the column value
is positive. If I find a value is null or negative or not numeric, I raise
an error in SQL server 2008 R2.
given table t0:
col
1.5
2
given table t1:
col
2
-1
5
0
null
NaN
For t0 I should get 3, for t1, I should raise an error.
Any help would be appreciated.
s**********o
发帖数: 14359
2
你不是乘数字么,你乘其它的干嘛,数据库不是STRUCTURED的,什么DATATYPE都不知道
怎么MANIPULATE?
1 (共1页)
进入Database版参与讨论
相关主题
SQL Server Trigger on System Base Table or Catalog View请教ssis
一个single table 的 SQL QUERYTable Merge (SQL Server)
SQL combine two tables into one table and add a new column初级问题
compare two large tables SQL (转载)help about SQL for ACCESS
SQL find distinct values in large tableHelp on Sql server huge table performance
SQL fast search in a 10 million records table (转载)Help! A cluster method in SQL
Oracle Group and Index question请教SQL server的一个programming的问题,谢谢
SQL combine two columns from two different tables no shared (转载)SQL问题请教: add one more column
相关话题的讨论汇总
话题: sql话题: table话题: column话题: multiply话题: values