hn query

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu Meta

Q&A about the site for Ubuntu users and developers

select sum(p.score) [total_score], avg(p.score) [avg_score]
from Posts p
where p.CreationDate > getdate()-30
and p.id in ( 
select c.postid
from 
Comments c
where  
( c.text like 'hacker%'
or c.text like 'news%'
) 
)

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results