Skip to main content
Converted the title into a question. Made the title more specific (so it is more clear it is about ***SEDE*** and not some (specific) Stack Overflow post)
Source Link
Peter Mortensen
  • 31.6k
  • 4
  • 22
  • 14

What toshould I add more to receiveretrieve full reputation points in SEDE?

Using this option option:

;with postvotes as
(
select v.creationdate
     , p.id postid 
     , case v.votetypeid
       when  1 then 'accepts'
       when 2 then 'up-votes'
       when 3 then 'down-votes'
       when 9 then 'bounty_recieved'
       end  vote_type
     , case p.posttypeid 
       when 1 then 'question'
       when 2 then 'answer'
       end post_type
     , sum(case  v.votetypeid 
           when 1 then 15
           when 2 then 10
           when 3 then -2
           when 9 then bountyamount
           end
       ) reputation_change
       
from votes v
inner join posts p on p.id = v.postid
where p.owneruserid = ##userid?1719510##
and posttypeid in (1,2)
and votetypeid in (1,2,3,9)
group by v.creationdate, p.id, votetypeid, posttypeid
),
bounties as 
(
select v.creationdate
     , v.postid postid 
     , 'bounty-offered' vote_type
     , 'question' post_type
     , sum(bountyamount) reputation_change
from votes v
where v.userid = ##userid?1719510##
and votetypeid = 8
group by v.creationdate, v.postid, votetypeid
),
approvededits as
(
select se.creationdate
     , se.postid postid 
     , 'approved-edit' vote_type
     , case p.posttypeid 
       when 1 then 'question'
       when 2 then 'answer'
       end  post_type
     , sum(2) reputation_change
from suggestededits se
inner join posts p on p.id = se.postid
where se.Owneruserid = ##userid?1719510##
and approvaldate is not null
group by se.creationdate, se.postid, posttypeid
)


select *
from postvotes
union
select *
from bounties
union 
select *
from approvededits

What should it be added to receive the full detailed reputation?

What to add more to receive full reputation

Using this option

;with postvotes as
(
select v.creationdate
     , p.id postid 
     , case v.votetypeid
       when  1 then 'accepts'
       when 2 then 'up-votes'
       when 3 then 'down-votes'
       when 9 then 'bounty_recieved'
       end  vote_type
     , case p.posttypeid 
       when 1 then 'question'
       when 2 then 'answer'
       end post_type
     , sum(case  v.votetypeid 
           when 1 then 15
           when 2 then 10
           when 3 then -2
           when 9 then bountyamount
           end
       ) reputation_change
       
from votes v
inner join posts p on p.id = v.postid
where p.owneruserid = ##userid?1719510##
and posttypeid in (1,2)
and votetypeid in (1,2,3,9)
group by v.creationdate, p.id, votetypeid, posttypeid
),
bounties as 
(
select v.creationdate
     , v.postid postid 
     , 'bounty-offered' vote_type
     , 'question' post_type
     , sum(bountyamount) reputation_change
from votes v
where v.userid = ##userid?1719510##
and votetypeid = 8
group by v.creationdate, v.postid, votetypeid
),
approvededits as
(
select se.creationdate
     , se.postid postid 
     , 'approved-edit' vote_type
     , case p.posttypeid 
       when 1 then 'question'
       when 2 then 'answer'
       end  post_type
     , sum(2) reputation_change
from suggestededits se
inner join posts p on p.id = se.postid
where se.Owneruserid = ##userid?1719510##
and approvaldate is not null
group by se.creationdate, se.postid, posttypeid
)


select *
from postvotes
union
select *
from bounties
union 
select *
from approvededits

What should it be added to receive the full detailed reputation?

What should I add more to retrieve full reputation points in SEDE?

Using this option:

;with postvotes as
(
select v.creationdate
     , p.id postid
     , case v.votetypeid
       when  1 then 'accepts'
       when 2 then 'up-votes'
       when 3 then 'down-votes'
       when 9 then 'bounty_recieved'
       end  vote_type
     , case p.posttypeid
       when 1 then 'question'
       when 2 then 'answer'
       end post_type
     , sum(case  v.votetypeid
           when 1 then 15
           when 2 then 10
           when 3 then -2
           when 9 then bountyamount
           end
       ) reputation_change

from votes v
inner join posts p on p.id = v.postid
where p.owneruserid = ##userid?1719510##
and posttypeid in (1,2)
and votetypeid in (1,2,3,9)
group by v.creationdate, p.id, votetypeid, posttypeid
),
bounties as
(
select v.creationdate
     , v.postid postid
     , 'bounty-offered' vote_type
     , 'question' post_type
     , sum(bountyamount) reputation_change
from votes v
where v.userid = ##userid?1719510##
and votetypeid = 8
group by v.creationdate, v.postid, votetypeid
),
approvededits as
(
select se.creationdate
     , se.postid postid
     , 'approved-edit' vote_type
     , case p.posttypeid
       when 1 then 'question'
       when 2 then 'answer'
       end  post_type
     , sum(2) reputation_change
from suggestededits se
inner join posts p on p.id = se.postid
where se.Owneruserid = ##userid?1719510##
and approvaldate is not null
group by se.creationdate, se.postid, posttypeid
)


select *
from postvotes
union
select *
from bounties
union
select *
from approvededits

What should be added to receive the full detailed reputation?

Post Closed as "Duplicate" by Samuel Liew
Source Link
Nathalie
  • 1.2k
  • 5
  • 4

What to add more to receive full reputation

Using this option

;with postvotes as
(
select v.creationdate
     , p.id postid 
     , case v.votetypeid
       when  1 then 'accepts'
       when 2 then 'up-votes'
       when 3 then 'down-votes'
       when 9 then 'bounty_recieved'
       end  vote_type
     , case p.posttypeid 
       when 1 then 'question'
       when 2 then 'answer'
       end post_type
     , sum(case  v.votetypeid 
           when 1 then 15
           when 2 then 10
           when 3 then -2
           when 9 then bountyamount
           end
       ) reputation_change
       
from votes v
inner join posts p on p.id = v.postid
where p.owneruserid = ##userid?1719510##
and posttypeid in (1,2)
and votetypeid in (1,2,3,9)
group by v.creationdate, p.id, votetypeid, posttypeid
),
bounties as 
(
select v.creationdate
     , v.postid postid 
     , 'bounty-offered' vote_type
     , 'question' post_type
     , sum(bountyamount) reputation_change
from votes v
where v.userid = ##userid?1719510##
and votetypeid = 8
group by v.creationdate, v.postid, votetypeid
),
approvededits as
(
select se.creationdate
     , se.postid postid 
     , 'approved-edit' vote_type
     , case p.posttypeid 
       when 1 then 'question'
       when 2 then 'answer'
       end  post_type
     , sum(2) reputation_change
from suggestededits se
inner join posts p on p.id = se.postid
where se.Owneruserid = ##userid?1719510##
and approvaldate is not null
group by se.creationdate, se.postid, posttypeid
)


select *
from postvotes
union
select *
from bounties
union 
select *
from approvededits

What should it be added to receive the full detailed reputation?