Answers for "get rows from 1 table with other table empty mysql"

SQL
0

get rows from 1 table with other table empty mysql

SELECT students.name, students.lastname, ifnull(courses.course_name, '-') as course_name
FROM students
LEFT JOIN courses
ON courses.id_student=students.id_student 
WHERE students.name LIKE '%$search%'
GROUP BY students.id_student 
ORDER BY students.name, students.lastname, courses.course_name
Posted by: Guest on November-27-2020

Code answers related to "get rows from 1 table with other table empty mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language