Carrie
Active Member
- Joined
- Nov 20, 2002
- Messages
- 418
Can anyone tell me why my query is repeating the results like 2 or 3 times?
SELECT Event.AddUser, Call.Call_Num, Event.AddDate, Event.EventTime, Event.ExtraTime, Call.OpenDate, Call.AssignTo, Call.AssignDate, Call.ClosedBy, Call.ClosedDate, Call.Status, Call.Priority, Call.IsClosed, CallLog.ChangeType, CallLog.Description
FROM (((Call INNER JOIN Event ON Call.Call_ID = Event.Call_ID) INNER JOIN Org ON Call.Org_ID = Org.Org_ID) INNER JOIN (zSysDepartment INNER JOIN zSysUser ON zSysDepartment.Department_ID = zSysUser.Department_ID) ON Event.AddUser = zSysUser.UserName) INNER JOIN CallLog ON (Call.Call_ID = CallLog.Call_ID) AND (Org.Org_ID = CallLog.Org_ID)
WHERE (((Event.AddDate)>=[Start Date] And (Event.AddDate)<=[End Date]) AND ((zSysUser.EscalateTo)="CBRTKO") AND ((Org.Region_ID)="7"))
ORDER BY Event.AddUser, Call.Call_Num, Event.AddDate;
SELECT Event.AddUser, Call.Call_Num, Event.AddDate, Event.EventTime, Event.ExtraTime, Call.OpenDate, Call.AssignTo, Call.AssignDate, Call.ClosedBy, Call.ClosedDate, Call.Status, Call.Priority, Call.IsClosed, CallLog.ChangeType, CallLog.Description
FROM (((Call INNER JOIN Event ON Call.Call_ID = Event.Call_ID) INNER JOIN Org ON Call.Org_ID = Org.Org_ID) INNER JOIN (zSysDepartment INNER JOIN zSysUser ON zSysDepartment.Department_ID = zSysUser.Department_ID) ON Event.AddUser = zSysUser.UserName) INNER JOIN CallLog ON (Call.Call_ID = CallLog.Call_ID) AND (Org.Org_ID = CallLog.Org_ID)
WHERE (((Event.AddDate)>=[Start Date] And (Event.AddDate)<=[End Date]) AND ((zSysUser.EscalateTo)="CBRTKO") AND ((Org.Region_ID)="7"))
ORDER BY Event.AddUser, Call.Call_Num, Event.AddDate;