
請教各位大佬,資料里有取消標識,現在統計PatientID,需要把有相同PatientID但有取消標識的相互抵消,沒有思路了,請賜教。
uj5u.com熱心網友回復:
select distinct PatientID from tableA a where not exists(select top 1 1 from tableA where PatientID=a.PatientID and charindex('取消',ItemName)>0)
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/185114.html
標籤:疑難問題
上一篇:postgresql備份資料
