当前位置:网站首页>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

边栏推荐
- 初识结构体
- Introduction Guide to stereo vision (7): stereo matching
- It's too difficult to use. Long articles plus pictures and texts will only be written in short articles in the future
- Principle and performance analysis of lepton lossless compression
- LeetCode 556. Next bigger element III
- notepad++
- Cloud computing technology hotspot
- nodejs_ fs. writeFile
- c语言指针深入理解
- Nodemon installation and use
猜你喜欢

Huber Loss

一文详解图对比学习(GNN+CL)的一般流程和最新研究趋势

Applet (global data sharing)
![Multiple solutions to one problem, asp Net core application startup initialization n schemes [Part 1]](/img/c4/27ae0d259abc4e61286c1f4d90c06a.png)
Multiple solutions to one problem, asp Net core application startup initialization n schemes [Part 1]

Unity SKFramework框架(二十二)、Runtime Console 运行时调试工具

Svgo v3.9.0+
![Introduction Guide to stereo vision (5): dual camera calibration [no more collection, I charge ~]](/img/68/6bfa390b0bedcdbc4afba2f9bd9c0f.jpg)
Introduction Guide to stereo vision (5): dual camera calibration [no more collection, I charge ~]

Understanding rotation matrix R from the perspective of base transformation

fs. Path module

22-07-04 Xi'an Shanghao housing project experience summary (01)
随机推荐
Ministry of transport and Ministry of Education: widely carry out water traffic safety publicity and drowning prevention safety reminders
[ctfhub] Title cookie:hello guest only admin can get flag. (cookie spoofing, authentication, forgery)
22-07-04 西安 尚好房-项目经验总结(01)
Nips2021 | new SOTA for node classification beyond graphcl, gnn+ comparative learning
一题多解,ASP.NET Core应用启动初始化的N种方案[上篇]
Newton iterative method (solving nonlinear equations)
Svgo v3.9.0+
阿里十年测试带你走进APP测试的世界
信息与熵,你想知道的都在这里了
Driver's license physical examination hospital (114-2 hang up the corresponding hospital driver physical examination)
生成对抗网络
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
我的一生.
Deep understanding of C language pointer
mysql安装配置以及创建数据库和表
一题多解,ASP.NET Core应用启动初始化的N种方案[上篇]
C语言-从键盘输入数组二维数组a,将a中3×5矩阵中第3列的元素左移到第0列,第3列以后的每列元素行依次左移,原来左边的各列依次绕到右边
Applet customization component
OpenGL - Model Loading
NIPS2021 | 超越GraphCL,GNN+对比学习的节点分类新SOTA