SSRS_SESSION

The shared datasets used in reports
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
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
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

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 83 times

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 0 guests