For report purposes in SSRS I need an SQL query for one parameter which will select only one value or all values (not two or more). It's a single value parameter.
Well, my query should looks like this, but it didn't work:
SELECT ft.id, ft.name
FROM fundtable ft
UNION ALL
SELECT '11111111-1111-1111-1111-111111111111','All'
DECLARE @funds NVARCHAR(MAX)
SELECT @funds = COALESCE(CAST(entity_id AS NVARCHAR(255)),',')
FROM epev_conduit
SELECT @funds