I am able to get results on select statement but on using update i am getting issue. Database Server :- Oracle 11g.
update t1 set t1.componentID = cteData.componentID from tpinventryrecds t1 inner join ( select * from (select TPLVLKEY , standardName , DOCTYPE , 'Default' as componentID ,count(*) as val from tpinventryrecds where componentID is null group by TPLVLKEY , standardName , DOCTYPE)`enter code here` where val = 1) cteData on t1.TPLVLKEY = cteData.TPLVLKEY and t1.standardName = cteData.standardName and t1.DOCTYPE = cteData.DOCTYPE;