SELECT
rateColumnID,
rateHeaderID,
parentColumnID,
rateColumnKeyMin,
rateColumnKeyMax,
rateColumnKeyValue,
rateColumnType,
rateColumnIndex,
anyMinimumInd,
anyMaximumInd
INTO
:rateColumnID,
:rateHeaderID,
:parentColumnID,
:rateColumnKeyMin,
:rateColumnKeyMax,
:rateColumnKeyValue,
:rateColumnType,
:rateColumnIndex,
:anyMinimumInd,
:anyMaximumInd
FROM
RateColumn
WHERE rateHeaderID = :rateHeaderID
AND
(
rateColumnKeyMin <= :value
OR anyMinimumInd = :trueValue
)
AND
(
rateColumnKeyMax >= :value
OR anyMaximumInd = :trueValue
)
AND
(
:rateColumnType IS NULL
OR rateColumnType = :rateColumnType
)
|