หวังว่าคุณมาทำอะไรแล้วรวมทั้งเททด้วย..ฉันกำลังพยายาม concatenate ค่าของคดีเมื่อคำให้การจากพื้นฐานต่างออกคอลัมน์ในเกล็ดหิมะ..ได้โปรดตามหาบล็อกของรหัสด้านล่างนี้
select *,
case when checkouttime is null then ',Patient is not checked out' else '' END
+ case when primarypatientinsuranceid is null then ',No insurance information' else '' END
+ case when closedby is null then ',Encounter not signed off' else '' END
+ case when billingtabcheckeddate is null then ',Billing tab is not checked' else ''
+ case when alreadyrouted is null then ',Missing slip already routed' else 'Valid Missing slip'
END as resultant
from final
ฉันกำลังจะเกิดข้อผิดพลาดที่บอกว่า"ที่ไม่คาดคิดเช่น"
ฉันกำลังพยายามสร้าง resultant คอลัมน์แสดงผลที่ตาม
Patient is not checked out/Billing tab is not checked
Missing slip already routed
Encounter not signed off/No insurance information /Billing tab is not checked
Valid Missing slip
ขอบคุณ Arun