select PostTypeId, SUM(Score) from posts where id<50 group by PostTypeId

0

Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS

Q&A for administrators, end users, developers and designers for Craft CMS

select *, row_number() over (partition by PostTypeId order by PostTypeId) FROM
(
select Id, PostTypeId, SUM(Score) tmp_sum
from posts where id<50 group by Id,PostTypeId) tmp_tble

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results