2019-07-02

作者: AI_Finance | 来源:发表于2019-07-02 11:05 被阅读0次

如何找出doctor_advice的sql:

select A.*, mda.attribute_name from
(
    select ppta.customer_id, ppta.record_id, ppta.record_type_id, ppta.dictionary_attribute_id, ppta.test_name, mrt.record_name 
    from pt_patient_test_advice as ppta
    join ms_system_record_type as mrt on mrt.record_type = ppta.record_type_id
) as A
join ms_dictionary_attribute as mda 
on mda.id=A.dictionary_attribute_id
where A.test_name like "%血培养%" or A.test_name like "%痰培养%"

相关文章

网友评论

    本文标题:2019-07-02

    本文链接:https://www.haomeiwen.com/subject/pvfzcctx.html