当前位置:网站首页>Error in conditional filter (if) syntax in sum function in SQL Server2005
Error in conditional filter (if) syntax in sum function in SQL Server2005
2022-06-30 03:59:00 【CSDN Q & A】
The phenomenon and background of the problem
SQL server2005 in SUM Conditional filtering in function (IF) Grammatical errors
Problem related code , Do not paste screenshots
select SUM(IF(counts>0,counts,0) from testTable
Operation results and error reporting contents
Error message :
news 156, Level 15, state 1, The first 1 That's ok
keyword 'IF' There are grammar errors nearby .
news 102, Level 15, state 1, The first 1 That's ok
',' There are grammar errors nearby .
My solution ideas and tried methods
Please help me to see where the grammar is wrong
What I want to achieve
Want to be in testTable Tabular counts Filter out all columns greater than 0 The sum of the values of
边栏推荐
- Pig-Latin (UVA492)
- Practical debugging skills
- Huawei cloud native - data development and datafactory
- What does the hyphen mean for a block in Twig like in {% block body -%}?
- (04). Net Maui actual MVVM
- [summary of skimming questions] database questions are summarized by knowledge points (continuous update / simple and medium questions have been completed)
- A minimalist way to integrate databinding into activity/fragment
- 解决navicat连接数据库遇到的问题
- 【个人总结】学习计划
- laravel9本地安裝
猜你喜欢

The jupyter notebook kernel hangs up frequently and needs to be restarted

两个月拿到N个offer,什么难搞的面试官在我这里都不算事

【笔记】2022.5.23 MySQL

Geometric objects in shapely

Laravel9 installation locale

Use common fileUpload to upload files

(03).NET MAUI实战 基础控件

laravel9本地安装

Interface testing -- how to analyze an interface?

Litjson parses the generated JSON file and reads the dictionary in the JSON file
随机推荐
在大厂外包呆了三年,颠覆了我的认知!
. Net 7 JWT configuration is too convenient!
尝试链接数据库时出现链接超时报错,如何解决?
[note] Introduction to data analysis on June 7, 2022
Simple theoretical derivation of SVM (notes)
From 2500 a month, no one wants to go to the programming road of the technical director of a large factory | my ten years
【筆記】AB測試和方差分析
第九天 脚本與資源管理
[Thesis reading | deep reading] role2vec:role based graph embeddings
DRF -- nested serializer (multi table joint query)
使用IDEAL连接数据库,运行出来了 结果显示一些警告,这部分怎么处理
ThingsBoard教程(二三):在规则链中计算二个设备的温度差
Interface test tool postman
(04). Net Maui actual MVVM
DBT product initial experience
绿色新动力,算力“零”负担——JASMINER X4系列火爆热销中
Implementation of aut, a self-developed transport layer protocol for sound network -- dev for dev column
RPC correction
EasyCVR部署服务器集群时,出现一台在线一台不在线是什么原因?
(04).NET MAUI实战 MVVM