stratebi.esselect productcategorykey, productsubcategorykey, englishproductsubcategoryname from...

Post on 07-Mar-2021

14 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

SELECT

EnglishProductCategoryName,

ProductCategoryKey

FROM

DimProductCategory

SELECT

EnglishProductCategoryName,

ProductCategoryKey

FROM

DimProductCategory

WHERE

ProductCategoryKey IN [@Categoria]

SELECT

ProductCategoryKey,

ProductSubcategoryKey,

EnglishProductSubcategoryName

FROM

DimProductSubcategory

SELECT

categoria.EnglishProductCategoryName,

subcategoria.ProductSubcategoryKey,

subcategoria.EnglishProductSubcategoryName,

categoria.ProductCategoryKey

FROM

DimProductCategory as categoria

INNER JOIN DimProductSubcategory as subcategoria

ON categoria.ProductCategoryKey =

subcategoria.ProductCategoryKey

SELECT

ProductCategoryKey,

ProductSubcategoryKey,

EnglishProductSubcategoryName

FROM

DimProductSubcategory

WHERE

ProductCategoryKey IN [@Categoria]

SELECT

categoria.EnglishProductCategoryName,

subcategoria.ProductSubcategoryKey,

subcategoria.EnglishProductSubcategoryName,

categoria.ProductCategoryKey

FROM

DimProductCategory as categoria

INNER JOIN DimProductSubcategory as subcategoria

ON categoria.ProductCategoryKey =

subcategoria.ProductCategoryKey

WHERE

categoria.ProductCategoryKey IN [@Categoria]

AND subcategoria.ProductSubcategoryKey IN

[@Subcategoria]

top related