Hi,
Try to use
DISTINCT and
WHERE clause
if it could help...
As example:
StringBuilder sbQry = new StringBuilder();
sbQry.Append("select DISTINCT A.CorpCode, B.PlanCode, A.EmpName ");
sbQry.Append("FROM DBO.Employee A, DBO.EmpPlan B ");
sbQry.Append("WHERE A.EmployeeId=B.EmployeeId ");
string qry = sbQry.ToString();
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Regards,
Algem