Scenarios SQL Functions

CASCO_All_Scenarios

Display the name of all selected scenarios for the case.

 

Return Value:

Returns a text list of all scenarios.

Parameters:

CaseNumber, CenterCode, YearCode: Uniquely Identifies the case for which the information should be returned

Delimiter: Characters to display for each separate value.

Example:      

(dbo.CASCO_All_Scenarios(ToxPat.CaseNumber, ToxPat.CenterCode, ToxPat.YearCode, ', ')) AS All_Scenarios

CASCO_Any_Scenario

Determine if any scenarios have been selected for the case.

 

Return Value:

Returns a value of 1 if any scenario is selected.

Returns a value of 0 if no scenarios are selected.

Parameters:

CaseNumber, CenterCode, YearCode: Uniquely Identifies the case for which the information should be returned

Delimiter: Characters to display for each separate value.

Example:                  

(dbo.CASCO_Any_Scenario(ToxPat.CaseNumber, ToxPat.CenterCode, ToxPat.YearCode)) AS Any_Scenario