当前位置:网站首页>SQL learning - case when then else
SQL learning - case when then else
2022-07-05 09:27:00 【Xu Jiajia 233】
scene
There is currently one “ Student transcript ”
It is necessary to inquire which students have passed , Which failed .
Example
create table StudentScore (
name string,
score int
);
INSERT INTO StudentScore VALUES
('AAA',32),
('BBB',58),
('CCC',62),
('DDD',92);
select Inquire about
select name,
case
when score >= 90 then ' good '
when score >= 60 then ' pass '
else ' fail, '
end as test_result
FROM StudentScore;
result

边栏推荐
- Confusion matrix
- LeetCode 556. 下一个更大元素 III
- 太不好用了,长文章加图文,今后只写小短文
- [beauty of algebra] singular value decomposition (SVD) and its application to linear least squares solution ax=b
- Transfer learning and domain adaptation
- LeetCode 556. Next bigger element III
- 植物大战僵尸Scratch
- Huber Loss
- Talking about label smoothing technology
- Nodejs modularization
猜你喜欢

Can't find the activitymainbinding class? The pit I stepped on when I just learned databinding

Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要

使用el-upload封装得组件怎么清空已上传附件
![Rebuild my 3D world [open source] [serialization-1]](/img/74/b6253845b43bc18f425d57695fba7c.jpg)
Rebuild my 3D world [open source] [serialization-1]

NIPS2021 | 超越GraphCL,GNN+对比学习的节点分类新SOTA

Creation and reference of applet

Newton iterative method (solving nonlinear equations)

【ManageEngine】如何利用好OpManager的报表功能

混淆矩阵(Confusion Matrix)

nodejs_ fs. writeFile
随机推荐
Transfer learning and domain adaptation
【PyTorch Bug】RuntimeError: Boolean value of Tensor with more than one value is ambiguous
Information and entropy, all you want to know is here
High performance spark_ Transformation performance
SMT32H7系列DMA和DMAMUX的一点理解
Using request headers to develop multi terminal applications
np. allclose
编辑器-vi、vim的使用
Node collaboration and publishing
Unity SKFramework框架(二十二)、Runtime Console 运行时调试工具
Applet (global data sharing)
信息與熵,你想知道的都在這裏了
Svg optimization by svgo
Unity skframework framework (XXII), runtime console runtime debugging tool
OpenGL - Model Loading
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
LeetCode 31. Next spread
使用el-upload封装得组件怎么清空已上传附件
Wxss template syntax
C language - input array two-dimensional array a from the keyboard, and put 3 in a × 5. The elements in the third column of the matrix are moved to the left to the 0 column, and the element rows in ea