SELECT MaterialProcessSlip.*,
Vendor.CompanyName ,
O.Name
FROM MaterialProcessSlip ProcessSlip
LEFT OUTER JOIN Vendors Vendor
ON (
ProcessSlip.SubContractorId=Vendor.Id
)
MaterialProcessSlip
LEFT OUTER JOIN Operations O
ON (
ProcessSlip.Operationsid=O.id
)
views:
59answers:
1
+2
A:
Are you asking what's wrong with your code?
Given the complete lack of information I can only comment on syntactic issues there may be semantic ones too.
You have MaterialProcessSlip.*
but you have aliased the table MaterialProcessSlip
as ProcessSlip
so have no table with that exposed name.
so you would need to use ProcessSlip.*
but you shouln't be using *
anyway. You also have a table name added in apparently at random after your parentheses.
SELECT ProcessSlip.col1, ProcessSlip.col2,...
Vendor.CompanyName ,
O.Name
FROM MaterialProcessSlip ProcessSlip
LEFT OUTER JOIN Vendors Vendor
ON (
ProcessSlip.SubContractorId=Vendor.Id
)
/* Removed -> MaterialProcessSlip*/
LEFT OUTER JOIN Operations O
ON (
ProcessSlip.Operationsid=O.id
)
Martin Smith
2010-08-09 09:30:20
+1 for effort, OP is obviously not trying to help us anyway.
Hal
2010-08-09 15:43:50
@Hal - Thanks. I suspect this question is doomed to closure anyway!
Martin Smith
2010-08-09 15:45:51
thanx Martin Smith
shyam
2010-08-11 06:32:33