human
Schema:
Student (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)
Faculty (FacID, Lname, Fname, Rank, Sex, Phone, Room, Building)
Department (DNO, Division, DName, Room, Building, DPhone)
Member_of (FacID, DNO, Appt_Type)
Course (CID, CName, Credits, Instructor, Days, Hours, DNO)
Minor_in (StuID, DNO)
Enrolled_in (StuID, CID, Grade)
Gradeconversion (lettergrade, gradepoint)
Please answer with SQL.
assistant
Sure, I understand.
human
how many students have not enrolled in any courses
assistant
SELECT COUNT( * ) FROM STUDENT WHERE StuID NOT IN ( SELECT StuID FROM ENROLLED_IN );
human
please check the table once more for the name of students not enrolled in any course | Do you need those students' Fname or Lname? | i need the students first name
assistant
SELECT Fname FROM STUDENT WHERE StuID NOT IN ( SELECT StuID FROM ENROLLED_IN ) ;