SQL 入职时间列名是join_time 求入职时间超过2年的员工。 怎么写
答案:3 悬赏:0
解决时间 2021-01-07 11:41
- 提问者网友:低吟詩仙的傷
- 2021-01-07 02:15
SQL 入职时间列名是join_time 求入职时间超过2年的员工。 怎么写
最佳答案
- 二级知识专家网友:洎扰庸人
- 2021-01-07 03:51
where join_time > 2
不知道你的join_time是什么类型。我是按照NUMBER来写的。
不知道你的join_time是什么类型。我是按照NUMBER来写的。
全部回答
- 1楼网友:躲不过心动
- 2021-01-07 04:54
select 员工 from 表 where datediff(day,join_time,getdate() )/366 >2
- 2楼网友:掌灯师
- 2021-01-07 04:37
select DateDiff(year,join_time,getdate()) as 入职年限, count(*) as 入职人员数 from T_Employee
where DateDiff(year,join_time,getdate()) >= 2
group by DateDiff(year,join_time,getdate())
追问:还有个 将邮件名带有126@的改为136@ 怎么改
追答:你的追问与原题无关吧
select replace(字段,'126@','136@')
追问:谢谢
追答:....................................................................
where DateDiff(year,join_time,getdate()) >= 2
group by DateDiff(year,join_time,getdate())
追问:还有个 将邮件名带有126@的改为136@ 怎么改
追答:你的追问与原题无关吧
select replace(字段,'126@','136@')
追问:谢谢
追答:....................................................................
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯