Hi All
I am trying to write a custom query that will generate me a report which shows me the following columns in ustore:
ProductID, CatalogNo,Product Name, Product Profile Name
Now I am able to get the first 3 by using this simple query below:
SELECT P.ProductID,P.CatalogNo AS SKU,PC.Name AS NAME
FROM [uStore].[dbo].[Product] P
JOIN Product_Culture PC on P.ProductID = PC.ProductID
Where P.StoreID = 000 and PC.CultureID = 8
However the product profile name is the part I am struggling to get. I worked out it looks like a product profile name is stored as another product and has the flag of isProfile = 1. But I cant see how I can tie the two together?
Any help is greatly appreciated.
Thanks