Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ANY ONE TELL ME EXAMPLE.

select * from (select columan_name1,columan_name2,b.columan_name3 from table1,table2 b )
up pivot (Sum(Colimn_name2) for[column_Name3] in ([].[])
as pvt order by columnNme2
Posted
Comments

Hi,
I hope this will help you
Pivot Operator in SQL Server Simplified[^]

Thanks:)
 
Share this answer
 
Hi,
I hope this will help you
Pivot Operator in SQL Server Simplified[^]

SQL
Select * from Customer
PIVOT
(
 SUM(SalesAmount) FOR CustomerName IN ([Dave],[Johny],[Tommy])
) 
AS Pivotable


Thanks:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900