Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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

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  
 
PREVIOUS NEXT
Tagged: #How #select #rows #matching #entry
ADD COMMENT
Topic
Name
2+3 =