Page 1 of 1

SSRS_SESSION_CUR_ENR

Posted: Mon Feb 20, 2017 5:58 pm
by robinwilson16
Current session for enrolments

Code: Select all

CREATE FUNCTION [dbo].[SSRS_SESSION_CUR_ENR] ()
RETURNS TABLE
AS
RETURN

SELECT 
	Code = SES.s_name, 
	Description = SES.s_name
FROM ulive.dbo.capd_session AS SES
WHERE
	SES.s_type = 'FY'
	AND SES.s_start <=  GetDate()
	AND SES.s_end >= GetDate()