V
VilMarci
Hi All,
I have a database with linked tables and the following query:
SELECT
tmp_chgclosed.CaseId,
sitesla.SLAlevel,
sitesla.Supported,
producttree.SLA,
producttree.Category,
slalevels.Target1
FROM
tmp_chgclosed
LEFT JOIN sitesla ON
tmp_chgclosed.SiteCode = sitesla.SiteCode
LEFT JOIN producttree ON
tmp_chgclosed.Detail = producttree.Competency AND
tmp_chgclosed.Type = producttree.Product AND
tmp_chgclosed.Category = producttree.ProductType
LEFT JOIN slalevels ON
producttree.Category = slalevels.CAT AND
sitesla.SLAlevel = slalevels.SLAtype
Nothing special. The query is working in the query browser, but not in
Access.
The first error was that Access wass missing a few ()'s, that I did not
understand, but ok.
Finally I could do this, when the next error occured:
SELECT *
FROM
((
tmp_chgclosed
LEFT JOIN sitesla ON
tmp_chgclosed.SiteCode = sitesla.SiteCode
)
LEFT JOIN producttree ON
(tmp_chgclosed.Detail = producttree.Competency) AND
(tmp_chgclosed.Type = producttree.Product) AND
(tmp_chgclosed.Category = producttree.ProductType)
)
LEFT JOIN slalevels ON
(producttree.Category = slalevels.CAT) AND
(sitesla.SLAlevel = slalevels.SLAtype)
And getting error message, that Join expression is not supported. Please
advise. The original query is working in any sql browser...
Thanks,
Marton
I have a database with linked tables and the following query:
SELECT
tmp_chgclosed.CaseId,
sitesla.SLAlevel,
sitesla.Supported,
producttree.SLA,
producttree.Category,
slalevels.Target1
FROM
tmp_chgclosed
LEFT JOIN sitesla ON
tmp_chgclosed.SiteCode = sitesla.SiteCode
LEFT JOIN producttree ON
tmp_chgclosed.Detail = producttree.Competency AND
tmp_chgclosed.Type = producttree.Product AND
tmp_chgclosed.Category = producttree.ProductType
LEFT JOIN slalevels ON
producttree.Category = slalevels.CAT AND
sitesla.SLAlevel = slalevels.SLAtype
Nothing special. The query is working in the query browser, but not in
Access.
The first error was that Access wass missing a few ()'s, that I did not
understand, but ok.
Finally I could do this, when the next error occured:
SELECT *
FROM
((
tmp_chgclosed
LEFT JOIN sitesla ON
tmp_chgclosed.SiteCode = sitesla.SiteCode
)
LEFT JOIN producttree ON
(tmp_chgclosed.Detail = producttree.Competency) AND
(tmp_chgclosed.Type = producttree.Product) AND
(tmp_chgclosed.Category = producttree.ProductType)
)
LEFT JOIN slalevels ON
(producttree.Category = slalevels.CAT) AND
(sitesla.SLAlevel = slalevels.SLAtype)
And getting error message, that Join expression is not supported. Please
advise. The original query is working in any sql browser...
Thanks,
Marton