Supposing you have the following tables and data
create table articles (article_id number, name varchar2(30)); create table tags (tag_id number, parent_tag_id num