UFN_DISCOUNT_GETMEMBERSHIPPROGRAMS
This function returns discount membership programs and level given its ID.
Return
| Return Type |
|---|
| table |
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @DISCOUNTID | uniqueidentifier | IN |
Definition
Copy
create function dbo.UFN_DISCOUNT_GETMEMBERSHIPPROGRAMS
(
@DISCOUNTID uniqueidentifier
)
returns table
as return
select
ID,
MEMBERSHIPPROGRAMID,
MEMBERSHIPLEVELID,
SEQUENCE
from
dbo.DISCOUNTMEMBER
where
DISCOUNTID=@DISCOUNTID;