Click here to Skip to main content
15,886,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sir i have following From in Query
SQL
Syntax error (missing operator) in query expression  'Laptopdeatils on Laptopdeatils.Jobid=JobDetails.Jobid Inner Join CustomerMaster  ON JobDetails.Jobid=CustomerMaster.Jobid  INNER JOIN  Partmaster on Partmaster.Jobid=CustomerMaster.Jobid' 


you Can see my query bellow

SQL
Select  JobDetails.Jobid
       ,JobDetails.JobDate
       ,JobDetails.Collid
       ,JobDetails.warrentytype
       ,JobDetails.ProductFrom
       ,JobDetails.Problem
       ,JobDetails.PhysicalConditon
       ,JobDetails.Enginnerfeddback
       ,Laptopdeatils.Model
       ,Laptopdeatils.LSrno
       ,CustomerMaster.CName
       ,CustomerMaster.Contactperson
       ,CustomerMaster.Address
       ,CustomerMaster.Email
       ,CustomerMaster.Phoneno
       ,JobDetails.Jobid
       ,JobDetails.JobDate
       ,JobDetails.Collid
       ,JobDetails.warrentytype
       ,JobDetails.ProductFrom
       ,JobDetails.Problem
       ,JobDetails.PhysicalConditon
       ,JobDetails.Enginnerfeddback 
FROM JobDetails 
INNER JOIN Laptopdeatils ON Laptopdeatils.Jobid=JobDetails.Jobid 
INNER JOIN CustomerMaster ON JobDetails.Jobid=CustomerMaster.Jobid  
INNER JOIN Partmaster ON Partmaster.Jobid=CustomerMaster.Jobid 

WHERE JobDettails.Jobid=1;


please reply this question
Posted
Updated 24-Mar-12 0:52am
v3
Comments
Oshtri Deka 24-Mar-12 6:52am    
Edit: query readability.

There is an additional 't' in the JobDettails

SQL
WHERE JobDettails.Jobid=1;


Dont worry, everybody makes such mistakes
 
Share this answer
 
Guess is 'Jobid' field is the root cause for this issue. Because, if the field is defined as text you must use the 's even if the value is a number.

What is the data definition for Jobid column in all tables (JobDetails, Laptopdetils, CusomterMaster, Partmaster)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900