משתמש:ערן/ערכים בעלי קידומת

select p2.page_title, p_start.page_title, substr(p_start.page_title, 1, locate('_', p_start.page_title)-1) as prefix from page p2 inner join (select p1.page_id, p1.page_title, substr(p1.page_title, locate('_', p1.page_title)+1) as suffix from page p1 where p1.page_namespace=0 and p1.page_is_redirect=0 and locate('_', p1.page_title)>0) p_start on p_start.suffix=p2.page_title where p2.page_namespace=0;

רשימת ערכים שיש להם שם זהה לערך אחר אבל עם קידומת נפוצה.