on 2021 May 27 6:26 PM
Hi,
I would like to filter out product having value "Bagged - Ground" in classification attribute "PackType".
I tried to user ProductFeature and able to filter out product having classification attribute Pack Type but facing issue as of now to put check on its value that is "Bagged - Ground"
Can anyone help?
Thanks,
Manish Yadav
Solution:
SELECT {p.code},{cav.name},{se.code}
FROM
{Product! as p JOIN ProductFeature as pf ON {pf.product}={p.pk}
JOIN ClassificationAttributeValue as cav ON {pf.stringValue}={cav.pk}
JOIN ArticleApprovalStatus as s on {p.approvalStatus}={s.pk}
JOIN SeriesEnum as se on {p.series}={se.pk}
JOIN CatalogVersion as cv ON {cv.pk}={p.catalogVersion}
JOIN Catalog as cat ON {cat.pk}={cv.catalog}}
WHERE
{cat.id}='<CATALOG_CODE>'
AND {cv.version} LIKE 'Online'
AND {pf.qualifier}='cab2cClassification/1.0/coffee.packagetype'
AND {cav.name} IN ('Bagged – Ground','Bagged – Whole Beans')
AND {s.code}='approved'
AND {p.customerServiceOnly}=0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
26 | |
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.