FortySix&2
n00b
- Joined
- Mar 29, 2004
- Messages
- 51
I am trying to create a simple sql query with no luck. It involves three tables and I am trying to use a join. It gives the following error:
Syntax error (missing operator) in query expression 'tblLocation.LocationID = tblJob.LocationID INNER JOIN tblJobCategory ON tblJobCategory.JobCategoryID = tblJob.JobCategoryID'.
Here is the sql statement:
Granted My sql skills aern't the greatest but it will work with just the first join.
Any help is appreicaited.
Syntax error (missing operator) in query expression 'tblLocation.LocationID = tblJob.LocationID INNER JOIN tblJobCategory ON tblJobCategory.JobCategoryID = tblJob.JobCategoryID'.
Here is the sql statement:
Code:
SELECT tblJob.JobID, tblJob.JobCategoryID, tblJob.LocationID, tblJob.JobCompany,
tblLocation.LocationID, tblLocation.LocationState, tblLocation.LocationName,
tblJobCategory.JobCategoryID, tblJobCategory.JobCategoryName
FROM tblJob
INNER JOIN tblLocation
ON tblLocation.LocationID = tblJob.LocationID
INNER JOIN tblJobCategory
ON tblJobCategory.JobCategoryID = tblJob.JobCategoryID
WHERE tblJob.JobCompany = 1 OR tblJob.JobCompany = 2;
Granted My sql skills aern't the greatest but it will work with just the first join.
Any help is appreicaited.