How To Select Rows With No Matching Entry In Another

[Solved] How To Select Rows With No Matching Entry In Another | Sql - Code Explorer | yomemimo.com
Question : How to select rows with no matching entry in another table?

Answered by : samy

SELECT Name, Gender,country, Salary, DeptName
FROM tbl_Employee
LEFT OUTER JOIN tbl_Department
ON tbl_Employee.DepartmentId = tbl_Department.DeptId
where tbl_Employee.DepartmentId is null 

Source : | Last Update : Wed, 24 Nov 21

Answers related to How to select rows with no matching entry in another table?

Code Explorer Popular Question For Sql