https://sqlzoo.net/wiki/NSS_Tutorial

sqlzoo NSS_Tutorial练习题
1.
The example shows the number who responded for:

question 1
at ‘Edinburgh Napier University’
studying ‘(8) Computer Science’
Show the the percentage who STRONGLY AGREE

SELECT A_STRONGLY_AGREE FROM nss
WHERE question=‘Q01’
AND institution=‘Edinburgh Napier University’
AND subject=’(8) Computer Science’

Calculate how many agree or strongly agree
2.
Show the institution and subject where the score is at least 100 for question 15.

SELECT institution, subject
FROM nss
WHERE question=‘Q15’
AND score>=100

Unhappy Computer Students
3.
Show the institution and score where the score for ‘(8) Computer Science’ is less than 50 for question ‘Q15’

SELECT institution,score
FROM nss
WHERE question=‘Q15’
AND subject=’(8) Computer Science’
AND score<50

相关文章:

  • 2021-09-11
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2021-04-27
  • 2022-12-23
猜你喜欢
  • 2021-06-22
  • 2021-07-26
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案