当前位置:网站首页>sqlserver怎么查询一张表中同人员的交叉日期
sqlserver怎么查询一张表中同人员的交叉日期
2022-08-01 09:05:00 【CSDN问答】
问下各位老哥,我现在有一个表userinfo,里面有每个人多段的在职期间,如下图:
我现在想要获取到一个期间重复的人员,比如其中一个人员有两条数据,分别是:
第一条:2022-05-15 到 2022-05-25
第二条:2022-05-20 到 2022-05-30
就需要将他的身份证号获取到。 这样的sql该怎么写呢,求解答
边栏推荐
- 22 Grab the Seat 1 C.Grab the Seat (Geometry + Violence)
- 华为深度学习课程第六、七章
- leetcode 42. Catch the rain
- 灵魂发问:MySQL是如何解决幻读的?
- Centos install php7.4, build hyperf, forward RDS
- ogg同步oracle到mysql,字段里面可能有需要转义的字符,怎么配置转义?
- 获取页面数据的方法
- pytest interface automation testing framework | single/multiple parameters
- LabVIEW RT中的用户界面更新速度
- net stop/start mysql80 access denied
猜你喜欢
随机推荐
zip package all files in the directory (including hidden files/folders)
Analysis of High Availability Solution Based on MySql, Redis, Mq, ES
Redis learning
灵魂发问:MySQL是如何解决幻读的?
【STM32】入门(二):跑马灯-GPIO端口输出控制
Pod环境变量和initContainer
Flink SQL - client, how to deal with the source side and to increase the target, the SQL - client including mapping table and the JOB such as
Prime Ring Problem(素数环问题)
HoloView--Customization
Leetcode - 6135: the longest part of the figure
扁平数组转树结构实现方式
Go supports OOP: use struct instead of class
Classify GBase 8 s lock
179. 最大数
MySQL query advanced - from the use of functions to table joins, do you remember?
最新的Cesium和Three的整合方法(附完整代码)
pytest接口自动化测试框架 | 跳过模块
pytest接口自动化测试框架 | 执行失败跳转pdb
GBase 8c中怎么查询数据库配置参数,例如datestyle
华为深度学习课程第九章——卷积神经网络以及案例实践