SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Formatting column header
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

51 Posts

Posted - 06/16/2014 :  17:13:28  Show Profile  Reply with Quote

I want to build the dynamic column header as K(s), 1(s)....12(s) etc based on student 's grade level. Is it possible ? How?

select distinct Count(s.Student_Number) OVER (PARTITION BY s.Grade_Level) as '''s.Grade_Level''' + '(S)' FROM Students s


Starting Member

47 Posts

Posted - 06/17/2014 :  07:36:29  Show Profile  Reply with Quote
Without any definition of your data it is impossible to help. Look at this http://www.sqlservercentral.com/Forums/Topic623711-145-1.aspx
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000