テーブルを作成して自分でクエリする必要がある場合は、次のようになります。コメントを読んで各構文が何をしているかを見ることができます
--CREATING the tables for the student information
create table quizinfo (
StudentId INT,
Name VARCHAR(500),
Score INT,
Class VARCHAR(500),
DateEntered smalldatetime,
Year INT
)
--Inserting data to the table
Insert into quizinfo values ('1', 'Ken Lee', '95', 'Math', '2017-05-
20', ' 2017')
Insert into quizinfo values ('2', 'Maria Chen', '100', 'Math', '2017-
05-20', '2017')
Insert into quizinfo values ('3', 'Sophia Reyes', '100', 'Math',
'2017-05-20', '2015')
--Selecting the data from the table where the year is only for 2017. The
--WHERE year = 2017 makes sure that it only picks up rows for 2017
SELECT Name, Score, Class, DateEntered, Year FROM quizinfo
WHERE year = '2017'
テーブルの構造を共有できますか? – Mureinik
表名と構造は列名を含めてください –
"宿題"の定義はこれではありませんか?試行はありません。実際の宿題を除いて、助けても質問しても問題ありません。 – Turophile