What is the id of the student who most recently registered course 301?
CREATE TABLE student_course_attendance (student_id VARCHAR, course_id VARCHAR, date_of_attendance VARCHAR)
SELECT TOP 1 student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE student_course_attendance (student_id VARCHAR, course_id VARCHAR, date_of_attendance VARCHAR) Question: What is the id of the student who most recently registered course 301? [/INST] SELECT TOP 1 student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC </s>