SourceCode/PROMS/SQL/BGETitleWithTextSiblings.sql

6 lines
175 B
SQL

select CC.Text, count(*) HowMany
from Contents CC
Join Parts PP ON CC.ContentID = PP.ContentID
Join Items IP ON IP.PreviousID = pp.ItemID
where type = 20042
Group By cc.TEXT