sql 塔领导下所有工程师的评级报告

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql 塔领导下所有工程师的评级报告相关的知识,希望对你有一定的参考价值。


SELECT MgrEmp.UserName AS MgrName
	,MgrEmp.Email AS MgrEmail
	,EngEmp.UserName AS EngName
	,EngEmp.Email AS EngEmail
	,vsm.PguName
	,vsm.SkillName
	,uccps.Rating
	,a.CompletedDate AS AssessmentCompletedDate
	,EngEmp.PrimaryRole
	,EngEmp.SecondaryRole
	,EngEmp.Country
	,EngEmp.ServiceTower
	,EngEmp.D_O_J
	,Cast(datediff(day, EngEmp.D_O_J, GETDATE()) / 365.2425 AS DECIMAL(6, 1)) TenureInYears
	,EngEmp.ManagerName2
	,EngEmp.ManagerName3
FROM dbo.[User] EngEmp
INNER JOIN dbo.[User] MgrEmp ON EngEmp.InternalManagerId = MgrEmp.UserId
	AND MgrEmp.IsActive = 1
LEFT JOIN dbo.UserXCenter uc ON EngEmp.UserId = uc.UserId
	AND uc.IsActive = 1
	AND uc.CenterId = 1
LEFT JOIN dbo.UserCenterXCenterPguSkill uccps ON uc.UserXCenterId = uccps.UserXCenterId
	AND uccps.IsActive = 1
LEFT JOIN dbo.vw_SkillMaster vsm ON uccps.CenterXPGUXSkillId = vsm.CenterPguSkillId
LEFT JOIN dbo.Assessment a ON uccps.LatestAssessmentId = a.AssessmentId
WHERE EngEmp.IsActive = 1
	AND (
		MgrEmp.Email = ''
		OR EngEmp.ManagerName2 LIKE '%%'
		)
ORDER BY MgrEmp.UserName
	,EngEmp.UserName

以上是关于sql 塔领导下所有工程师的评级报告的主要内容,如果未能解决你的问题,请参考以下文章

sql 用评级更新所有评论

来自有条件和无条件列的 SQL 查询分组的比率或百分比

个人述职报告

Sharp RatingBlockchain Research Report - CDC Rating Report

字节币代码质量差,先发优势尽失|标准共识评级

浪潮业务稳定连续性获Global Data唯一“Leader”评级 蝉联数据中心整体能力“Very Strong”评级