MERGE INTO t_tnc t USING (
SELECT r.patent_id, COUNT (*) ref_ct
  FROM t_citation r GROUP BY r.patent_id) qq
ON (t.patent_id = qq.parent_id)
WHEN MATCHED THEN   UPDATE SET t.ref_cnt = qq.ref_cnt;

-- 
You received this message because you are subscribed to the Google
Groups "Oracle PL/SQL" group.
To post to this group, send email to Oracle-PLSQL@googlegroups.com
To unsubscribe from this group, send email to
oracle-plsql-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/Oracle-PLSQL?hl=en

Reply via email to