Database SQL Operation: Product.searchTypeCodes
Description: | returns a list of product types based on status, date, a benefit/liability indicator and concernRoleType. |
Sterotype: | nsmulti |
SELECT
DISTINCT(Product.typeCode)
INTO
:typeCode
FROM
Product,
ProductConcernRole
WHERE Product.benefitInd = :benefitInd
AND Product.statusCode = :statusCode
AND Product.startDate <= :searchDate
AND
(
Product.endDate >= :searchDate
OR Product.endDate IS NULL
)
AND ProductConcernRole.productID = Product.productID
AND ProductConcernRole.concernRoleType = :concernRoleType
|