Guest User

Untitled

a guest
Jan 17th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. select count(StageName) from OpportunityHistory where StageName = 'x' and CreatedDate = THIS_WEEK
  2.  
  3. SELECT count(id), newvalue, oldvalue from OpportunityFieldHistory where Field = 'StageName' and NewValue = 'x' and OldValue != 'x'
  4.  
  5. SELECT Stagename, SUM(amount) FROM Opportunity GROUP BY Stagename
Add Comment
Please, Sign In to add comment