Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3441

need it in summarized form

$
0
0

Hi experts

 

i had created a query in sql

 

pls find the below attached one

 

---------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

SELECT dISTINCT OHEM.U_DeptName, OHEM.termReason,OHEM.termDate FROM OHEM

 

 

WHERE OHEM.termReason IN ('2','3','1') AND OHEM.termDate BETWEEN '2015-01-01 00:00:00.000' AND '2015-09-06 00:00:00.000'

 

 

when i run this query am getting the result in Single employees wise insted of that i need it in summarized Dept wise way lik this

 

i need this query to be used in Crystal report by adding the query as SPT in sql

 

 

u_dept name        TOTAL          YEAR

 

A                          10                  2015

 

B                            25                 2015

 

C                            30                 2015

 

 

Pls help to sort it out

 

 

Regards


Viewing all articles
Browse latest Browse all 3441


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>