MS Visual Studio (Reporting Services)

29 Views Asked by At

I've worked in SSRS for years but have never learned what this type of coding is actually named (which makes searching for solutions difficult), can anyone help please? Below is an example which allows the developer to have the code run as one continuous string. It also, if you're not familiar, allows for many powerful functions to be used that would otherwise (to my knowledge) not be available (e.g., IIF's, INSTR(JOIN()), SWITCH's, etc.).

=
 " select distinct bn " & 
 " into #ST " & 
 " from frm_cr_2021 a " & 
 " join Md..nui_crssw b " & 
 " ON a.rc=b.cy"&MID(YEAR(Parameters!frm_dt.Value),3,2)&"_rc" &
 " join nd_bs..dg_cv c " & 
 " on b.nd=c.nd " & 
 " where a.f_Dt<=@frm_dt and a.tr_dt>=@frmy_dt " & 
"(select distinct c.ln,a.RC,A.Tr_Lv,a.P_Typ,a.P_Gp,a.Eff_Date,a.Term_Date from frm_"&YEAR(Parameters!frm_dt.Value)&" a "
0

There are 0 best solutions below