当前位置:网站首页>SQL note 2 [MySQL]
SQL note 2 [MySQL]
2022-06-28 23:35:00 【Hua Shi】
Classify wages by grade —— Data cleaning || Apply subquery
select
case
when (bottom + top)/2 <= 10 then '0~10'
when (bottom + top)/2 <= 20 then '10~20'
when (bottom + top)/2 <= 310 then '20~30'
else '30+'
end,
salary from(
SELECT
left(salary,locate('k',salary)-1) as bottom,
substr(salary,locate('-',salary)+1,length(salary)-locate('-',salary)-1) as top,
salary
from data.dataanalyst) as tRunning results :

边栏推荐
- stm32F407-------LCD
- 没找到实习,他总结了这些
- What will be done after digital IC Verification?
- [数学建模]Matlab非线性规划之fmincon()函数
- Learn binary tree like this
- Matlab learning notes (6) upsample function and downsample function of MATLAB
- C语言-单词分析解析
- Keil project, RTT cannot print after too many programs are written
- What are the virtual machine software? What are their respective roles?
- 第三章 处理机调度练习
猜你喜欢

Machine learning 6-decision tree

ERROR 1067 (42000): Invalid default value for ‘end_time‘ Mysql

第三章 处理机调度练习

Counting sorting and stability of sorting

stm32F407-------通用定时器

Chapter V virtual memory exercise

See fengzhixia | FENGZikai, the originator of Guoman, for exclusive sale of Digital Collections

Chapter II Classic synchronous exercises
![[opencv] - linear filtering: box filtering, mean filtering, Gaussian filtering](/img/1d/3a46517cbfa90005a15d7858d81ca9.png)
[opencv] - linear filtering: box filtering, mean filtering, Gaussian filtering

What are the virtual machine software? What are their respective roles?
随机推荐
[chapter 71 of the flutter problem series] mutual conversion between uint8list and image in flutter
[software analysis] iterative explanation of software analysis, design and modeling
Scrapy uses xlwt to implement the exporter that exports data in Excel format
2022年PMP项目管理考试敏捷知识点(4)
C# 面试题目_20220627记录一下
第五章 虚拟存储器 练习
2022-06-28: what does the following golang code output? A:true; B:false; C:panic; D: Compilation failed. package main import “fm
Counting sorting and stability of sorting
Machine learning 4-dimension reduction technology
Learn binary tree like this
收藏 | VLOOKUP函数的这些妙用你都知道吗?
C语言-单词分析解析
Picture 64base transcoding and decoding
When dialogfragment's onstop is completely invisible, call disass to exit the interface and report an error. Solution
urllib. Parse parses the parameters in the URL connection
Yyds dry inventory solution sword finger offer: maximum sum of continuous subarrays (II)
fio的IO重放功能
他原来是这么刷题的!
华为22级专家十年心血终成云原生服务网格进阶实战文档,是真的6
[matlab]函数定义与使用