hello
I'm using sql reporting services, and i'd like a parameter for a distinct list of values (distinct d.TYPEDESC) for the user to select on the report.
I'd also like to add an 'ALL TYPES' at the top (which I've seen done as union select '-1' ?)
using my code below how would i go about adding this funcionality in ?
the values within column TYPEDESC are strings, I've tried using Report Paranmeters but got nowhere......................
many thanks
rich
I'm using sql reporting services, and i'd like a parameter for a distinct list of values (distinct d.TYPEDESC) for the user to select on the report.
I'd also like to add an 'ALL TYPES' at the top (which I've seen done as union select '-1' ?)
using my code below how would i go about adding this funcionality in ?
the values within column TYPEDESC are strings, I've tried using Report Paranmeters but got nowhere......................
many thanks
rich
Code:
SELECT a.DURATION, a.TIMESTARTED, a.ENQUIRYID, a.LOCATION,
a.SEQUENCENO, b.ENQUIRY_TYPES_ID, c.AUTHORITYID,
d.TYPEDESC, d.ID
FROM a INNER JOIN
b ON a.ENQUIRYID = b.ENQUIRY INNER JOIN
c ON a.LOCATION = c.LOCATIONID AND
b.OWNINGLOCATION = c.LOCATIONID INNER JOIN
d ON b.ENQUIRY_TYPES_ID = d.ID
WHERE (d.TYPEDESC = @TYPEDESC)