我在不同的地方遇到了这个错误,我不知道为什么,所以我想知道这里是否有人可能有任何线索。这是sql。
select Intranet.dbo.tblPeople.FirstName,
Intranet.dbo.tblPeople.LastName,
Intranet.dbo.tblPeople.CellPhone
tblActivities.OnSiteSupervisorID,
tblActivities.OffSiteSupervisorID,
tblProjects.projectid,
tblVehicleData.Description AS vehicle,
tblVehicleData.VehicleID,
tblVehicleData.ActivityID as ActivityID,
tblProjects.ProjectName,
tblActivities.numPersons,
tblActivities.Description,
tblActivities.ChannelNumber,
tblActivities.StartDate,
tblActivities.EndDate,
tblActivities.estimatedExitTime,
tblLocations.locationname,
from Intranet.dbo.tblPeople,
smartroadmangement.dbo.tblVehicleData,
smartroadmangement.dbo.tblProjects,
smartroadmangement.dbo.tblActivities
left join smartroadmangement.dbo.tblLocations
on smartroadmangement.dbo.tblActivities.locationId = smartroadmangement.dbo.tblLocations.locationid
left join Intranet.dbo.tblPeople as people
on people.PersonID = smartroadmangement.dbo.tblActivities.OnSiteSupervisorID
left join tblActivities as Activities
on Activities.ActivityID = tblVehicleData.ActivityID
left join tblActivities as Activitiez
on Activitiez.ProjectID = tblProjects.ProjectID
WHERE (smartroadmangement.dbo.tblActivities.StartDate Between '2012-07-15 14:17:09' and '2012-07-15 20:17:09')
AND (smartroadmangement.dbo.tblActivities.EndDate Between '2012-07-15 20:17:09'and '2012-07-15 23:17:09')