Trends per language

0

Please login or register to vote for this query.

(click on this box to dismiss)

Signal Processing Meta

Q&A about the site for practitioners of the art and science of signal, image and video processing

select 'All OpenCV Posts'   category
,       sum("ViewCount")    viewcount
,       sum("AnswerCount")  answercount
from    Posts
where  (lower("Tags") like '%open%cv%')
and    "CreationDate" < convert(datetime,format(GETDATE(),'yyyy-MM-01'))
union
select 'Python'             category
,       sum("ViewCount")    viewcount
,       sum("AnswerCount")  answercount
from    Posts
where   (lower("Tags") like '%open%cv%' and lower("Tags") like '%python%')
and     "CreationDate" < convert(datetime,format(GETDATE(),'yyyy-MM-01'))
union
select  'C++'               category
,       sum("ViewCount")    viewcount
,       sum("AnswerCount")  answercount
from    Posts
where   (lower("Tags") like '%open%cv%' and lower("Tags") like '%c++%')
and     "CreationDate" < convert(datetime,format(GETDATE(),'yyyy-MM-01'))
union
select  'Java'              category
,       sum("ViewCount")    viewcount
,       sum("AnswerCount")  answercount
from    Posts
where   (lower("Tags") like '%open%cv%' and lower("Tags") like '%java%')
and     "CreationDate" < convert(datetime,format(GETDATE(),'yyyy-MM-01'))
union
select  'Android'           category
,       sum("ViewCount")    viewcount
,       sum("AnswerCount")  answercount
from    Posts
where   (lower("Tags") like '%open%cv%' and lower("Tags") like '%android%')
and     "CreationDate" < convert(datetime,format(GETDATE(),'yyyy-MM-01'))
union
select  'Other'             category
,       sum("ViewCount")    viewcount
,       sum("AnswerCount")  answercount
from    Posts
where   (lower("Tags") like '%open%cv%' and  (    lower("Tags") not like '%python%'
                                              and lower("Tags") not like '%c++%'
                                              and lower("Tags") not like '%java%'
                                              and lower("Tags") not like '%android%'
                                              )
         )
and     "CreationDate" < convert(datetime,format(GETDATE(),'yyyy-MM-01'))

Enter Parameters

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