Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ More Complex Filtering | Section
Intermediate SQL
セクション 1.  8
single

single

bookMore Complex Filtering

メニューを表示するにはスワイプしてください

The school recently held a competition for students who participated in Mathematics. Some students were rewarded, but now the school wants to ensure no students cheated by taking more than one exam, including the math exam.

Your task is to find the last names of students who took more than one exam, with one of them being Mathematics.

Here is the query from our previous assignment that you can use as an example:

1234
SELECT student_surname, AVG(grade) as average_grade FROM student_grades GROUP BY student_surname HAVING COUNT(grade) > 1
copy
タスク

スワイプしてコーディングを開始

Retrieve the last names of those students who received more than one grade for the Mathematics exam.

Retrieve only the surname of these students. The answer should have only one column.

Brief Instructions

  • Retrieve the student_surname column.
  • Use the WHERE clause to set subject_name = 'Mathematics'.
  • Group the results by student_surname.
  • Use the HAVING clause with COUNT(grade) > 1.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 1.  8
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt