USP_SIMPLEDATALIST_PROSPECTFUNDINGINTEREST
List of a prospect funding interests.
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@PROSPECTID | uniqueidentifier | IN | Prospect |
Definition
Copy
CREATE procedure dbo.USP_SIMPLEDATALIST_PROSPECTFUNDINGINTEREST
(
@PROSPECTID uniqueidentifier
)
as
set nocount on;
select
PROSPECTFUNDINGINTEREST.ID as 'VALUE',
dbo.UFN_FUNDINGTYPECODE_GETDESCRIPTION(PROSPECTFUNDINGINTEREST.FUNDINGTYPECODEID) + ' (' + PROSPECTFUNDINGINTEREST.INTERESTLEVEL + ')' as 'LABEL'
from
dbo.PROSPECTFUNDINGINTEREST
where
PROSPECTFUNDINGINTEREST.PROSPECTID = @PROSPECTID
order by
'LABEL'