Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Formatting column header
 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
Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000