我正在尝试将 sbd.Dosage 和 sbd.Units 内部加入一列,并在内部加入后在它们之间添加 / 。
EX sbd.Dosage + / + sbd.Units
select sbd.Code, c.Description, sbd.Dosage, Case when sbd.Units = '' then '1' else sbd.Units end as Units,
ad.ApptDate, sbd.RCycle, sbd.RWeek, sbd.RDay, t.HistoryOrder, t.TypeId
from bill_SuperBillDetail sbd, bill_ProcedureVerification pv, AppointmentData ad,
CPTCode c, CPTType t
where sbd.AccessionNumber = pv.AccessionNumber
and pv.ApptId = ad.ApptId
and ad.PatientId = 443
and ad.ApptDate <= GETDATE()
and ad.ApptDate > 31
and sbd.Code = c.Code
and c.TypeId = t.TypeId