on 2019 Jun 09 9:56 AM
Using flexible search query, I wanted to search all base stores associated with a certain catalog provided as an input identified by ID (e.g. UnitedStatesCatalog).
Can someone please recommend such query which I can run on HAC and test the response?
Entities I am looking to join: BaseStore, Catalogs, CatalogForBaseStores
Request clarification before answering.
Hi - please use the following query:
SELECT {bs:uid}, {c:id} FROM
{
Catalog as c JOIN CatalogsForBaseStores as rel
ON {c:PK} = {rel:target}
JOIN BaseStore AS bs
ON {rel:source} = {bs:PK}
} WHERE {c:id}='id-of-the-catalog'
e.g.
SELECT {bs:uid}, {c:id} FROM
{
Catalog as c JOIN CatalogsForBaseStores as rel
ON {c:PK} = {rel:target}
JOIN BaseStore AS bs
ON {rel:source} = {bs:PK}
} WHERE {c:id}='electronicsProductCatalog'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.