Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

how to group records stage wise

$
0
0

Hello,

I am trying to grouping a record using stage wise means I want to see stage wise data together. Is there any way to see stage wise data together.For ex, DUACC students data together,NDUACC students data together.I am also sharing my script that I am trying to implement in sql server 2012

select distinct(sch.ID_NUM),a.ATTRIB_CDE,a.ATTRIB_DEF,sch.YR_CDE,sch.TRM_CDE,c.ATHLETIC_PROSPECT,c1.STAGE,c1.TRM_CDE 'candidacy_trm_cde',c1.YR_CDE 'candidacy_yr_cde'
from STUDENT_CRS_HIST sch
left outer join NAME_MASTER n on n.ID_NUM=sch.ID_NUM
left outer join CANDIDACY c1 on c1.ID_NUM=n.ID_NUM
left outer join CANDIDATE c on c.ID_NUM=c1.ID_NUM
left outer join ATTRIBUTE_TRANS a on a.ID_NUM=c.ID_NUM

where sch.YR_CDE='2016' and sch.TRM_CDE='20'



Viewing all articles
Browse latest Browse all 4871

Trending Articles



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