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
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 New queryRequied
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

49 Posts

Posted - 07/15/2013 :  02:52:15  Show Profile  Reply with Quote

help very urgent .......very very urgent.

i have data below:

table_name col_count date_col

t1 20 10/11/13
t2 21 10/11/13
t1 25 10/12/13
t2 27 10/12/13

I need to display like:

table_name 10/11/13 10/12/13
t1 20 25
t2 21 27

please help it's urgent.



In (Som, Ni, Yak)

17689 Posts

Posted - 07/15/2013 :  03:25:02  Show Profile  Reply with Quote
quick ... check out PIVOT operator . . .

Time is always against us

Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 07/15/2013 :  03:50:34  Show Profile  Reply with Quote
here's an illustration

SQL Server MVP
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.05 seconds. Powered By: Snitz Forums 2000