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 ryan_courses.students;
SELECT students.student_id, students.first_name, students.last_name,
courses.course_number, courses.course_name
FROM students
LEFT JOIN enrollments ON students.student_id = enrollments.student_id
RIGHT JOIN courses ON courses.course_number = enrollments.course_number;
Student ID's 3 and 4 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!