The FROM T_BA_DRGs_MX a
'+ (case when @ table_KB_NUM=0 then' else '
The join Table_KB b on a.C H0A23=b.K name 'end) +
(case when @ table_DRG_NUM=0 then 'else'
The join Table_DRG c on a. d. RGCode=c.D name 'end) +'
WHERE a. idate='2018'
CodePudding user response:
External links directly by the well, and even have a empty table do not matter