Database SQL Operation: Product.searchTypesByCategory
Description: | returns all the distinct product types belonging to a category |
Sterotype: | nsmulti |
SELECT
DISTINCT(Product.typeCode),
Product.benefitInd
INTO
:typeCode,
:benefitInd
FROM
ProductCategory,
Product,
ProductConcernRole
WHERE
(
ProductCategory.categoryCode = :productCategoryCode
AND Product.statusCode = :statusCode
AND Product.startDate <= :searchDate
AND
(
Product.endDate >= :searchDate
OR Product.endDate IS NULL
)
AND Product.productID = ProductCategory.productID
AND ProductConcernRole.productID = Product.productID
AND ProductConcernRole.concernRoleType = :concernRoleType
)
|