Below query can be used to display number of tickets which are created from different sources(here external systems) as per months.
Output would be like below
Source Month count
Email Dec 10
Email Jan 14
Phone Jan 15
self Serv Dec 05
Query:
select externalsystem,DATENAME(MONTH,DATEADD(month, 0, creationdate)) month ,count(*) count from TICKET group by externalsystem , DATENAME(MONTH,DATEADD(month, 0, creationdate))
---------------------------------------------------------------------------- All the messagesbelow are just forwarded messages if some one feels hurt about it please add your comments we will remove the post.Host/author is not responsible for these posts.
Output would be like below
Source Month count
Email Dec 10
Email Jan 14
Phone Jan 15
self Serv Dec 05
Query:
select externalsystem,DATENAME(MONTH,DATEADD(month, 0, creationdate)) month ,count(*) count from TICKET group by externalsystem , DATENAME(MONTH,DATEADD(month, 0, creationdate))
---------------------------------------------------------------------------- All the messagesbelow are just forwarded messages if some one feels hurt about it please add your comments we will remove the post.Host/author is not responsible for these posts.
No comments:
Post a Comment