select Rfm.RFQNo, case when mpr.RevisionId<> RFm.MPRRevisionId then \'mapped\' else \'not mapped\' end as Mapping, * from MPRRfqItems mfi inner join MPRRe