 SELECT
a.id,a.Name, b.sortno,c.id as fid,c.name,c.HISCheckCode,c.HISCheckName,c.HISPrice	,c.CostPrice
FROM
	PEIS.dbo.ExamPack  a 
left join  PEIS. [dbo].[ExamPackFeeItem] b on a.id=b.ExamPackid
LEFT JOIN PEIS. [dbo].FEEITEM c ON b.FeeItemId=c.ID
order by a.id,b.sortno
 