Question: I need help SQL Write a select statement to select the information for all of the students and all of the courses. ( Including the
I need help SQL
Write a select statement to select the information for all of the students and all of the courses. Including the students who arent enrolled in any courses and the courses that dont have any students enrolled.
SELECT FROM ryancourses.students;
SELECT students.studentid students.firstname, students.lastname,
courses.coursenumber, courses.coursename
FROM students
LEFT JOIN enrollments ON students.studentid enrollments.studentid
RIGHT JOIN courses ON courses.coursenumber enrollments.coursenumber;
Student ID's and are being removed from the table when I hit run, I don't know how to fix that issue.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
