SSRS_SESSION

The shared datasets used in reports
Post Reply
User avatar
robinwilson16
Site Admin
Posts: 185
Joined: Sun Oct 16, 2016 6:46 pm
Forename: Robin
Surname: Wilson
College Name: FEA
Position: MIS Consultant
LinkedIn Profile: https://www.linkedin.com/in/robinwilson16

SSRS_SESSION

Post by robinwilson16 » Mon Feb 20, 2017 5:53 pm

Lists academic years

Code: Select all

CREATE FUNCTION [dbo].[SSRS_SESSION] ()
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 >= DATEADD ( year, -4, GetDate() )
	AND SES.s_end <= DATEADD ( year, +2, GetDate() )
Attachments
SSRS_SESSION.rsd
(770 Bytes) Downloaded 61 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest