Viewing 3 posts - 1 through 3 (of 3 total)
Thanks for the replies.
Yes, i want to display all employees (from tblEmployees) whose employee code is not cancelled in tblEmployeeCodes.
October 20, 2008 at 7:50 am
Sorry, here is the info. you requested:
SELECT FirstName,LastName,EmpEmail,EmpCode
FROM tblEmployees (7990)
SELECT FirstName,LastName,EmpEmail,EmpCode
FROM tblEmployees
WHERE Subgroup = @Subgroup (VARIES ACCORDING TO @SubGroup)
SELECT EmpCode FROM tblEmpCodes where cancelled IS NOT NULL (1906)
Select EmpCode
FROM tblEmployees
WHERE...
October 20, 2008 at 7:33 am
All of the queries return rows except this one:
Select EmpCode
FROM tblEmployees
WHERE EmpCode NOT IN (select EmpCode from tblEmpCodes where cancelled is NOT NULL)
No rows returned.
October 20, 2008 at 7:23 am
Viewing 3 posts - 1 through 3 (of 3 total)