select Mem.LastName + ','+ Mem.FirstName as [MemberName],
Rx.RxproName,DOB
-- ,IC.ICName
from memberstatus MS
inner join Members Mem
on Mem.MemberId = MS.MemberId
inner join Rxprocessors Rx
on Rx.RxProcessorId = Mem.RxProcessorId
inner join MemberInsuranceCompany MIC
on MIC.MemberId = Mem.MemberId
--inner Join InsuranceCompanies
--on IC.InsuranceCompanyId = MIC.InsuranceCompanyId
where MS.status = 'A'
|