我对 SSRS for Sql Server 非常陌生。使用 2008。我的工作要求我使用此工具重现一些遗留报告 —— 我已经为我的参数创建下拉菜单并遇到了 DB2 不支持多参数的错误。我们使用 PeopleSoft 表。我的工作现在说,找到解决方法。我一直在阅读许多论坛,但我无法得到任何东西。谁能提供资源或引导我完成强制此报告允许我的用户选择多个参数需要做的事情?
SELECT AL1.EMPLID, AL1.NAME,
AL4.COVERAGE_ELECT, AL4.FLAT_AMOUNT,
AL1.JOBTITLE, AL1.JOB_FAMILY,
AL3.ANNUAL_RT, AL3.ANNL_BENEF_BASE_RT,
AL4.BENEFIT_PLAN
FROM TABLEONE AL1,
TABLETWO AL2,
TABLETHREE AL3,
TABLEFOUR AL4
WHERE (AL1.EMPLID = AL3.EMPLID
AND AL1.EMPL_RCD = AL3.EMPL_RCD
AND AL1.EMPLID = AL2.EMPLID
AND AL1.EMPL_RCD = AL2.EMPL_RCD
AND AL1.EMPLID = AL4.EMPLID
AND AL1.EMPL_RCD = AL4.EMPL_RCD)
AND (AL2.EFFDT = (SELECT MAX(LF.effdt)
FROM TABLETWO LF
WHERE LF.emplid = al2.emplid
AND LF.empl_rcd = al2.empl_rcd
AND LF.plan_type = al2.plan_type
AND LF.benefit_nbr = al2.benefit_nbr
AND LF.effdt <= CURRENT Date)
AND AL2.PLAN_TYPE = '20'
AND AL2.COVERAGE_ELECT = 'E'
AND AL3.EFFDT = (SELECT MAX(J.EFFDT)
FROM TABLETHREE J
WHERE J.EMPLID = AL3.EMPLID
AND J.EMPL_RCD = AL3.EMPL_RCD
AND J.EFFDT <= CURRENT Date)
AND AL3.EFFSEQ = (SELECT MAX(ES.EFFSEQ)
FROM TABLETHREE ES
WHERE ES.EMPLID = AL3.EMPLID
AND ES.EMPL_RCD = AL3.EMPL_RCD
AND ES.EFFDT = AL3.EFFDT)
AND AL4.EFFDT = (SELECT MAX(L.EFFDT)
FROM TABLETWO L
WHERE L.EMPLID = AL4.EMPLID
AND L.EMPL_RCD = AL4.EMPL_RCD
AND L.PLAN_TYPE = AL4.PLAN_TYPE
AND L.BENEFIT_NBR = AL4.BENEFIT_NBR
AND L.EFFDT <= CURRENT Date)
AND AL4.PLAN_TYPE IN (?)
AND AL4.COVERAGE_ELECT= ?)