I have two different tables like this...
TblDepartment : DeptId, DeptName
TblEmployee : EmpId, DeptId, DeptName
Now due to some error there are some wrong mappings in employee table of deptId and deptName (DeptName mapped with wrong DeptId)
I want to figure out those DeptIds...
Any help will be appreciated...
DeptName
should not be a column in the tabletblEmployee
. When you need the name,JOIN
toTblDepartment
. – Larnu Feb 23 at 10:16