UFN_COURSEGRADING_VALIDSESSIONDATES
Returns true if provided dates are valid for a session that is defined for the school on the provided course.
Return
Return Type |
---|
bit |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@COURSEID | uniqueidentifier | IN | |
@STARTDATE | date | IN | |
@ENDDATE | date | IN |
Definition
Copy
create function dbo.UFN_COURSEGRADING_VALIDSESSIONDATES
(
@COURSEID uniqueidentifier,
@STARTDATE date,
@ENDDATE date
)
returns bit
with execute as caller
as begin
declare @retval bit = 0
if (select dbo.UFN_SESSION_GET_FORSCHOOL_BYDATE(COURSE.SCHOOLID, @STARTDATE, @ENDDATE)
from dbo.COURSE
where COURSE.ID = @COURSEID) is not null
set @retval = 1;
return @retval
end