G
Guest
I have this query which I used to populated a dropdown list when a department
is assigned to a employee.now I want to populated those department which are
not assigned to employee.this query not work.
select Dep.Department_Name,emp.dept_id from contact_dept
Dep,Contact_Employee_Depts Emp where dep.active=-1 and dep.Dept_id <>
Emp.Dept_Id and Emp.Emp_id=" & CLng(ViewState("Emp_id")) & ";"
if i put = in istead of <> it also give same resualt
is assigned to a employee.now I want to populated those department which are
not assigned to employee.this query not work.
select Dep.Department_Name,emp.dept_id from contact_dept
Dep,Contact_Employee_Depts Emp where dep.active=-1 and dep.Dept_id <>
Emp.Dept_Id and Emp.Emp_id=" & CLng(ViewState("Emp_id")) & ";"
if i put = in istead of <> it also give same resualt