当前位置:网站首页>SQL create a new field based on the comparison date
SQL create a new field based on the comparison date
2022-06-23 09:57:00 【CSDN Q & A】
There are two fields in the data table, as shown in the following figure


Now I want to go through sql Create a new one for each record according to the size of the two dates type Field , assignment 0 perhaps 1, Be similar to
iif( to_char(aendtime,'yyyy-mm-dd') <= to_char(dplan_complete_time),0,1) as type ,Easy to do BI According to this type Field grouping
Would like to ask what is a good way
边栏推荐
- 2022高考季征文获奖名单公布
- 高性能算力中心 — RDMA — 实现技术
- I have been promoted. How can I get along with my former colleagues at the same level?
- Go 字符串比较
- Cesium loading orthophoto scheme
- 漫画 | Code Review快把我逼疯了!
- 2021-04-12 链表第一次实现!!!
- Successful experience in postgraduate entrance examination for MTI master of English translation major of Beijing University of science and technology in 2023
- A 32KB cache with direct mapping Memory exercises after class
- After installing these five plug-ins, pycharm can be used for takeoff!
猜你喜欢

Thin film interference data processing

安装typescript环境并开启VSCode自动监视编译ts文件为js文件

卧槽,最惊艳的论文神器!
![[wangdingbei 2020 Qinglong formation]areuserialz](/img/38/b67f7a42abec1cdaad02f2b7df6546.png)
[wangdingbei 2020 Qinglong formation]areuserialz

给RepVGG填坑?其实是RepVGG2的RepOptimizer开源

Dr. Sun Jian was commemorated at the CVPR conference. The best student thesis was awarded to Tongji Ali. Lifeifei won the huangxutao Memorial Award

谷贱伤农,薪贱伤码农!

web--信息泄漏

laravel8 beanstalk 使用说明
![[GXYCTF2019]BabySQli](/img/51/a866a170dd6c0160ce98d553333624.png)
[GXYCTF2019]BabySQli
随机推荐
Liujinhai, architect of zhongang Mining: lithium battery opens up a Xintiandi for fluorine chemical industry
CVPR大会现场纪念孙剑博士,最佳学生论文授予同济阿里,李飞飞获黄煦涛纪念奖...
[MRCTF2020]Ez_bypass
A 32KB cache with direct mapping Memory exercises after class
【CTF】 2018_rop
分布式常见面试题
云原生数据库-Amazon RDS
AI system frontier dynamics issue 38: Google has abandoned tensorflow?; Four GPU parallel strategies for training large models; Father of llvm: modular design determines AI future
[wangdingbei 2020 Qinglong formation]areuserialz
必须知道的RPC内核细节(值得收藏)!!!
Successful experience of postgraduate entrance examination in materials and Chemical Engineering (metal) of Beijing University of Aeronautics and Astronautics in 2023
Wechat applet: click the button to switch frequently, overlap the custom markers, but the value does not change
Jump game of leetcode topic analysis
Alimentation des animaux de compagnie basée sur stm32
Cesium loading orthophoto scheme
[GYCTF2020]Blacklist
Go string comparison
thymeleaf如何取url中请求参数值?
135137138445 unable to remotely connect to the database due to disabling
Form repeated submission problem