on 11-05-2015 2:38 AM
Hi,
I'm trying to execute a query
SELECT {Product:PK} FROM {Product AS Product }
WHERE (
EXISTS
(
{
{
SELECT {feat.pk} FROM {ProductFeature AS feat}
WHERE {feat.classificationAttributeAssignment}= ?paramClassAssign
AND {feat.product}={Product.pk}
AND {feat.language} IS NULL
AND {feat.numberValue} = ?paramValue
}
}
) AND {Product:catalogVersion} = ?catalogVersion
)
but the console is giving me an error:
cannot find (visible) type for alias { SELECT {feat within [Product:Product]
Anyone knows what I'm doing wrong here?
Thanks,
Luiz.
Hi Luiz,
the problem is with space between the 2 curly braces starting the subquery in EXISTS clause. You have
...EXISTS ( { { SELECT...
and this should look like this ...EXISTS ( {{ SELECT...
also the closing curly braces should be kept together, not
}
}
but
}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
same error with the following: {p.PK} from {Product as p JOIN Product2TargetOnlineCatalogs as pt ON {p.PK}={pt.source} JOIN TargetOnlineCatalogEnum as t ON {pt.target}={t.PK}} WHERE {t.code}='CODE'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.