Hi, check it oncecreate table #TblconPRc (CUSTID varchar(20),PLIST varchar(20),ITEMCODE varchar(20),FPRICE float)goinsert #TblconPRcselect 'SAMTR','SAM','123WER',1.25 union allselect 'GANTS','TAS','FUJ345',1.78 union allselect 'SAMTR','SAM','FUJ345',1.45 union allselect 'MANTA','MAN','123WER',1.35gocreate table #TblDEFPRc(PLIST varchar(20),ITEMCODE varchar(20),UNITPRC float)goinsert #TblDEFPRcselect 'TAS','SON567',4.55 union allselect 'COL','123WER',1.55 union allselect 'SAM','123WER',1.55 union allselect 'TAS','FUJ345',1.98 union allselect 'SAM','FUJ345',1.65 union allselect 'MAN','123WER',1.75go;with cte as(select *from #TblconPRc union allselect null,t2.PLIST,t2.ITEMCODE,t2.UNITPRCfrom #TblconPRc t1 right join #TblDEFPRc t2 on t1.PLIST=t2.PLIST and t1.ITEMCODE=t2.ITEMCODEwhere t1.PLIST is null and t1.ITEMCODE is null)select * from cte
--Ranjit