/****** Script for SelectTopNRows command from SSMS ******/
SELECT TOP 1000 [學校]
,[年級]
,[性別]
,[1#_請問您在校期間有發表過學術論文嗎?請選擇已發表的最高級別:]
,[2#_請問您在校期間參加過科研項目嗎?請選擇已參加的最高級別:]
,[3#_請問您在校期間參加學術會議嗎?請選擇已參加的最高級別:]
,[4#_請問您在校期間參加創新比賽項目嗎?請選擇已參加的最高級別:]
,[5#_請問您在校期間有獲得或申請過專利憑證嗎?請選擇對應的次數:]
,[6、請問您大學本科時各科成績平均分大致在以下哪個範圍內?]
,[7、請問您讀研期間各科成績的平均分大致在在以下哪個範圍內? ]
,[1#_經常可以從其他領域發現自己專業領域的創新靈感]
,[2#_我善於發現生活中的新變化、新問題]
,[3#_能主動發現一些問題,並發現和問題有關的各種聯繫]
,[4#_在思考與解決問題時,我的思路總是清晰的、暢通的,頭腦中經常涌現出心的想法]
,[5#_我善於發現問題的未知部分,通常能預測問題結果,並能正確地驗證這一結果]
,[6#_學習中我能夠比別人想得更深一層]
,[7#_我敢於大膽設想新的工作方案]
,[8#_通常遇到問題時,我常能從多方面進行思考、探索可能性,而不是固定在一種思路或侷限在某一方面]
,[9#_遇到挫折時我能很快從中恢復過來並繼續前進]
,[10#_遇到問題時我能夠迎難而上]
,[11#_我做事非常嚴謹、認真,並對問題進行深思熟慮、精益求精]
,[12#_我能夠對權威提出疑問即使有些已有定論]
,[13#_我寧願和大家一起努力工作,而不願意單獨工作]
,[14#_我經常參加集體活動或項目]
,[15#_我經常與別人探討學術,交流思想]
,[1、我們學校的學習氛圍很濃厚—]
,[0~1]
,[1~2]
,[2~3]
,[3~4]
,[4~5]
,[2、我能很好的運用多學科知識來解決問題]
,[0~11]
,[1~21]
,[2~31]
,[3~41]
,[4~51]
,[3、我能很快的收集到我需要的信息並有效處理—]
,[0~12]
,[1~22]
,[2~32]
,[3~42]
,[4~52]
,[4、我經常關注相關學科或學術前沿問題—]
,[0~13]
,[1~23]
,[2~33]
,[3~43]
,[4~53]
,[5、在解決問題時,我分析問題較快,而具體實施較慢 —]
,[0~14]
,[1~24]
,[2~34]
,[3~44]
,[4~54]
,[6、創新的想法經常有,但真正動手去做的卻很少—]
,[0~15]
,[1~25]
,[2~35]
,[3~45]
,[4~55]
,[7、當我動手去做的時候我總能做的很好—]
,[0~16]
,[1~26]
,[2~36]
,[3~46]
,[4~56]
,[您對提升研究生創新能力有何建議?(選答)]
,[總分]
,[F76]
,[F77]
,[F78]
,[F79]
,[F80]
,[F81]
,[F82]
,[F83]
,[F84]
,[F85]
FROM [innovation].[dbo].[graduates]
use innovation
update graduates set 學校='南昌大學' where 學校='1'
update graduates set 學校='江西財經大學' where 學校='2'
update graduates set 學校='江西師範大學' where 學校='3'
update graduates set 學校='南昌航空大學' where 學校='4'
update graduates set 學校='江西農業大學' where 學校='5'
update graduates set 學校='華東交通大學' where 學校='6'
update graduates set 年級='研一' where 年級='1'
update graduates set 年級='研二' where 年級='2'
update graduates set 年級='研三' where 年級='3'
select * from dbo.graduates
update graduates set 性別='男' where 性別='1'
update graduates set 性別='女' where 性別='2'
delete from graduates where 年級 is null
select COUNT(*) as '南昌大學研一人數' from graduates where 學校='南昌大學' and 年級='研一'
select COUNT(*) as '南昌大學研二人數' from graduates where 學校='南昌大學' and 年級='研二'
select COUNT(*) as '南昌大學研三人數' from graduates where 學校='南昌大學' and 年級='研三'
/* 下面開始將問卷數據轉換成點值*/
/****** Script for SelectTopNRows command from SSMS ******/
SELECT TOP 1000 [學校]
,[年級]
,[性別]
,[Q1]
,[Q2]
,[Q3]
,[Q4]
,[Q5]
,[Q6]
,[Q7]
,[Q8]
,[Q9]
,[Q10]
,[Q11]
,[Q12]
,[Q13]
,[Q14]
,[Q15]
,[Q16]
,[Q17]
,[Q18]
,[Q19]
,[Q20]
,[Q21]
,[Q22]
,[Q23]
,[0~1]
,[1~2]
,[2~3]
,[3~4]
,[4~5]
,[Q24]
,[0~11]
,[1~21]
,[2~31]
,[3~41]
,[4~51]
,[Q25]
,[0~12]
,[1~22]
,[2~32]
,[3~42]
,[4~52]
,[Q26]
,[0~13]
,[1~23]
,[2~33]
,[3~43]
,[4~53]
,[Q27]
,[0~14]
,[1~24]
,[2~34]
,[3~44]
,[4~54]
,[Q28]
,[0~15]
,[1~25]
,[2~35]
,[3~45]
,[4~55]
,[Q29]
,[0~16]
,[1~26]
,[2~36]
,[3~46]
,[4~56]
,[您對提升研究生創新能力有何建議?(選答)]
,[總分]
FROM [innovation].[dbo].[graduates]
/*
select COUNT(*) as '南昌大學研一人數' from graduates where 學校='南昌大學' and 年級='研一'
select COUNT(*) as '南昌大學研二人數' from graduates where 學校='南昌大學' and 年級='研二'
select COUNT(*) as '南昌大學研三人數' from graduates where 學校='南昌大學' and 年級='研三'
*/
select * from graduates
select COUNT(*) from graduates where 學校='南昌大學'
select COUNT(*) from graduates where 學校='江西財經大學'
select COUNT(*) from graduates where 學校='江西師範大學'
select COUNT(*) from graduates where 學校='南昌航空大學'
select COUNT(*) from graduates where 學校='江西農業大學'
select COUNT(*) from graduates where 學校='華東交通大學'
/***********
下面開始成績轉換
***********************/
/*1. 請問您在校期間有發表過學術論文嗎?請選擇已發表的最高級別: [單選題]
○ C刊以上 ○ C刊 ○ 核心期刊 ○ 核心以下
選1 得5分,選2得3分,選3得2分 選4得1分
*/
update graduates set Q1='5' where Q1='1'
update graduates set Q1='3' where Q1='2'
update graduates set Q1='2' where Q1='3'
update graduates set Q1='1' where Q1='4'
update graduates set Q1='1' where Q1='-2'---2的賦值爲1分
/*2. 請問您在校期間參加過科研項目嗎?請選擇已參加的最高級別: [單選題]
○ 國際級 ○ 國家級 ○ 省級 ○ 省級以下或無
選1 得5分,選2得3分,選3得2分 選4得1分
*/
update graduates set Q2='5' where Q2='1'
update graduates set Q2='3' where Q2='2'
update graduates set Q2='2' where Q2='3'
update graduates set Q2='1' where Q2='4'
update graduates set Q2='1' where Q2='-2'---2的賦值爲1分
/*
3. 請問您在校期間參加學術會議嗎?請選擇已參加的最高級別: [單選題]
○ 國際級 ○ 國家級 ○ 省級 ○ 省級以下或無
選1 得5分,選2得3分,選3得2分 選4得1分
*/
select * from graduates
update graduates set Q3='5' where Q3='1'
update graduates set Q3='3' where Q3='2'
update graduates set Q3='2' where Q3='3'
update graduates set Q3='1' where Q3='4'
update graduates set Q3='1' where Q3='-2'---2的賦值爲1分
/*
4. 請問您在校期間參加創新比賽項目嗎?請選擇已參加的最高級別: [單選題]
○ 國際級 ○ 國家級 ○ 省級 ○ 省級以下或無
選1 得5分,選2得3分,選3得2分 選4得1分
*/
select * from graduates
update graduates set Q4='5' where Q4='1'
update graduates set Q4='3' where Q4='2'
update graduates set Q4='2' where Q4='3'
update graduates set Q4='1' where Q4='4'
update graduates set Q4='1' where Q4='-2'---2的賦值爲1分
/*
5. 請問您在校期間有獲得或申請過專利憑證嗎?請選擇對應的次數: [單選題]
○ 0 ○ 1 ○ 2 ○ 3及以上
選1得1分,選2得2分,選3得3分,選4得5分
*/
select * from graduates
update graduates set Q5='5' where Q5='4'
update graduates set Q5='3' where Q5='4'
update graduates set Q5='2' where Q5='2'
update graduates set Q5='1' where Q5='1'
update graduates set Q5='1' where Q5='-2'---2的賦值爲1分
/*6、請問您大學本科時各科成績平均分大致在以下哪個範圍內? [單選題]
○ 100~90 ○ 90~80 ○ 80~70 ○ 70~0
選1 得5分,選2得3分,選3得2分 選4得1分
*/
select * from graduates
update graduates set Q6='5' where Q6='1'
update graduates set Q6='3' where Q6='2'
update graduates set Q6='2' where Q6='3'
update graduates set Q6='1' where Q6='4'
update graduates set Q6='1' where Q6='-2'---2的賦值爲1分
/*
7、請問您讀研期間各科成績的平均分大致在在以下哪個範圍內? [單選題]
○ 100~90 ○ 90~80 ○ 80~70 ○ 70~0
選1 得5分,選2得3分,選3得2分 選4得1分
*/
select * from graduates
update graduates set Q7='5' where Q7='1'
update graduates set Q7='3' where Q7='2'
update graduates set Q7='2' where Q7='3'
update graduates set Q6='1' where Q6='4'
update graduates set Q7='1' where Q7='-2'---2的賦值爲1分
/*
8. 經常可以從其他領域發現自己專業領域的創新靈感 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
9. 我善於發現生活中的新變化、新問題 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
10. 能主動發現一些問題,並發現和問題有關的各種聯繫 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
11. 在思考與解決問題時,我的思路總是清晰的、暢通的,頭腦中經常涌現出心的想法 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
12. 我善於發現問題的未知部分,通常能預測問題結果,並能正確地驗證這一結果 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
13. 學習中我能夠比別人想得更深一層 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
14. 我敢於大膽設想新的工作方案 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
15. 通常遇到問題時,我常能從多方面進行思考、探索可能性,而不是固定在一種思路或侷限在某一方面 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
16. 遇到挫折時我能很快從中恢復過來並繼續前進 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
17. 遇到問題時我能夠迎難而上 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
18. 我做事非常嚴謹、認真,並對問題進行深思熟慮、精益求精 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
19. 我能夠對權威提出疑問即使有些已有定論 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
20. 我寧願和大家一起努力工作,而不願意單獨工作 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
21. 我經常參加集體活動或項目 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
22. 我經常與別人探討學術,交流思想 [單選題]
非常不符合 ○ 非常不符合 ○ 2 ○ 3 ○ 4 ○ 非常符合 非常符合
*/
--Q8--Q22爲量表題,無須轉換且均爲正向2016年4月6日 13:51:15
select * from graduates where Q10<0
select * from graduates
update graduates set Q10='3' where Q10='-2'---2的賦值爲3分
select * from graduates where Q15<0
update graduates set Q15='3' where Q15='-2'---2的賦值爲3分
select * from graduates where Q16<0
update graduates set Q16='3' where Q16='-2'---2的賦值爲3分
select * from graduates where Q19<0
update graduates set Q19='3' where Q19='-2'---2的賦值爲3分
select * from graduates where Q21<0
update graduates set Q21='3' where Q21='-2'---2的賦值爲3分
select * from graduates where Q22<0
update graduates set Q22='3' where Q22='-2'---2的賦值爲3分
select * from graduates