我有一个在报告(SSRS)中使用的SQL过程。from employees of all Departments) [This is listed as Employee 1 has time on it] 我需要在SQL过程中加入一个参数,该参数按部门过滤员工它可以很容易地在报告级别上处理,但由于数据行很大,这会使报告软件崩溃。它需要在SQL级别上处理。 目前,如果我在WHERE子句中使用过滤器,它也会在项目级别过滤数据。
我有一个疑问: a.kli, count(distinct(a.adic)) as count, ad_delivery.sgmt_kli_adic a join wand.wandterms c on b.term_desc=c.term_desc
join dwh.sgmt_clients e on a.partner_id::varchar = e.partn