select * FROM Exam_Part where DeptName like '%心电%' AND Summary LIKE '%2.%'
SELECT TOP 10 * FROM Exam_Result

INSERT INTO Exam_Result 
( [PID], [DeptName], [FID], [FeeItemName], [RptItemName], [TextResult], [ItemClass]) 

SELECT A.ID AS PID,A.DeptName,B.FID,B.FeeItemName ,
    SUBSTRING(Summary, 3, CHARINDEX(':', Summary) - 3) AS RptItemName,
    SUBSTRING(Summary, CHARINDEX(':', Summary) + 1, LEN(Summary) - CHARINDEX(':', Summary)) AS TextResult,
		ItemClass='检查'
FROM 
Exam_Part A 
LEFT JOIN Enrollment_FeeItem B ON A.EID=B.EID AND A.DeptName=B.DeptName AND A.DeptCode=B.DeptCode
WHERE  A.DeptName like '%心电%' AND Summary LIKE '%:%'
 


SELECT 
    SUBSTRING(Summary, 3, CHARINDEX(':', Summary) - 3) AS RptItemName,
    SUBSTRING(Summary, CHARINDEX(':', Summary) + 1, LEN(Summary) - CHARINDEX(':', Summary)) AS TextResult
FROM 
    Exam_Part
		where DeptName like '%心电%' AND Summary LIKE '%2.%'
