sql TCI 114日本评级查询

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql TCI 114日本评级查询相关的知识,希望对你有一定的参考价值。

SELECT DISTINCT tt.Test_Name
	,skill1
	,NAME
	,empid
	,PrimaryRole
	,SecondaryRole
	,PrimaryServiceTower
	,manager
	,Centers
	,rating
	,CONVERT(VARCHAR(10), round(CONVERT(FLOAT, (
					(
						SELECT TOP 1 TIME
						FROM Test_Create_v3
						) - (
						SELECT MIn(TIME)
						FROM test_results_v3
						WHERE test_id = ee.test_id
						)
					)) / 60, 0)) + ' min' AS TimeTaken
INTO #Temp
FROM vw_Mgr_rpt ee
JOIN TCI_Test_Name tt WITH (NOLOCK) ON ee.id = tt.id
WHERE ee.Center = 'Global'
	AND Test_Name IN (
		'APJ_ASC_Retest_FY15'
		,'FY15_Japan_Wave1'
		)
	AND empid NOT IN (
		
		)
ORDER BY Test_Name --AND tt.Test_Name='ISS_WAVE1_FY15'

SELECT *
FROM #Temp
WHERE TimeTaken IS NOT NULL
	AND ISNUMERIC(rating) > 0
	AND Test_Name IN (
		'HPSD_WAVE1_FY14'
		,'HPSD_Wave1_FY15'
		,'ISS_WAVE1_FY14'
		,'BCS_Wave1_FY15'
		,'HPN_WAVE1_FY14'
		,'HPN_WAVE1_FY15'
		,'ISS_WAVE1_FY15'
		,'APJ_ASC_Retest_FY15'
		,'FY15_Japan_Wave1'
		)
	AND Centers = 'CSC Japan'
	AND empid NOT IN (
		
		)
ORDER BY Test_Name

SELECT *
FROM #Temp
WHERE TimeTaken IS NOT NULL
	AND ISNUMERIC(rating) > 0
	AND Test_Name IN (
		'APJ_ASC_Retest_FY15'
		,'FY15_Japan_Wave1'
		)
	AND empid NOT IN (
		
		)
ORDER BY Test_Name

SELECT DISTINCT Test_Name
FROM #Temp
WHERE TimeTaken IS NOT NULL
	AND ISNUMERIC(rating) > 0
	AND Test_Name IN (
		'HPSD_WAVE1_FY14'
		,'HPSD_Wave1_FY15'
		,'ISS_WAVE1_FY14'
		,'BCS_Wave1_FY15'
		,'HPN_WAVE1_FY14'
		,'HPN_WAVE1_FY15'
		,'ISS_WAVE1_FY15'
		)

以上是关于sql TCI 114日本评级查询的主要内容,如果未能解决你的问题,请参考以下文章

sql 报告 - TCI V3报告评级前2波所有技能

sql TCI 114 vw_GetAllWaveRatingReport.sql

sql LMS DB TCI中的链接对象

基于日期时间值的相同表上的高效sql子查询

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

sql数据库查询保留最新的值?