Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Content with tag
pivot
Items 1 to 20 of 21
Next 20 >>
UNPIVOT a table using CROSS APPLY
I generally spend part of each day looking through http://www.stackoverflow.com, http://dba.stackexchange.com or http://www.sqlservercentral.com. I read through questions that have already...
Read more...
By
Kenneth Fisher
2013/04/12
|
Source:
SQLServerCentral.com
|
Category:
blogs
Rating:
(not yet rated)
|
Discuss
|
Briefcase
|
2,001 reads
The Ultimate Index Usage Reporter
Reports index stats, index size+rows, member seek + include columns as two comma separated output columns, and index usage stats for one or more tables and/or schemas.
Read more...
By
Jesse Roberge
2012/12/27
|
Source:
SQLServerCentral.com
|
Category:
indexing
Rating:
|
Discuss
|
Briefcase
|
7,201 reads
Dynamic PIVOT CLR
Learn how yo can use a SQL-CLR procedure to handle all your PIVOT queries.
Read more...
By
Eric Wahner
2012/12/06
|
Source:
SQLServerCentral.com
|
Category:
.net
Rating:
|
Discuss
|
Briefcase
|
8,519 reads
Script to create dynamic PIVOT queries in SQL Server
Pivoting is a common reporting requirement - data is stored in columns and you need to present it in rows. This was a nice feature that was added to SQL Server, but you don't always know all of the values you need to pivot on. This tip looks at how you can dynamically create the pivot command to handle these unknown values.
Read more...
By
Additional Articles
2012/11/09
|
Source:
MSSQLTips.com
|
Category:
pivot
Rating:
Rate this
|
Briefcase
|
4,322 reads
A Stock Price Correlation Matrix
Building a Stock Price Correlation Matrix Using TVPs, a CROSS JOIN and the PIVOT Function
Read more...
By
John Ryle
2012/05/14
|
Source:
SQLServerCentral.com
|
Category:
tvp
Rating:
|
Discuss
|
Briefcase
|
5,669 reads
Using PIVOT
how can use pivot for reporting
Read more...
By
Pankaj Upadhyay
2010/08/02
|
Source:
SQLServerCentral.com
|
Category:
t-sql
Rating:
|
Discuss
|
Briefcase
|
4,912 reads
Simple Crosstab Procedure with Power
Create crosstab queries as easily as MS Access with a lot more power.
Read more...
By
cgruel
2010/06/02
|
Source:
SQLServerCentral.com
|
Category:
crosstab
Rating:
|
Discuss
|
Briefcase
|
3,069 reads
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
In Part 1, we learned how to make both Cross-Tabs and Pivots. In Part 2, we'll learn how to automate a very common type of Cross-Tab report and maybe learn some extra tricks on the way.
Read more...
By
Jeff Moden
2010/04/30 (first published: 2008/12/03)
|
Source:
SQLServerCentral.com
|
Category:
crosstab
Rating:
|
Discuss
|
Briefcase
|
37,865 reads
Split string into table, separator can be more than 1 char
Split string like ('123,43,5465,6788,1231,111', ',') into table, separator (,) can be more than 1 char
Read more...
By
Luigi Marinescu
2009/11/19
|
Source:
SQLServerCentral.com
|
Category:
split
Rating:
|
Discuss
|
Briefcase
|
1,269 reads
Pivoting, Unpivoting and Aggregating
We asked Phil Factor to write a nice simple quick-start guide about aggregation, pivoting and un-pivoting techniques. To do so, he takes us all the way from getting the data from a published source, transferring it to SQL Server, un-pivoting it, storing it in a relational table, aggregating it and finally pivoting the data in a variety of ways.
Read more...
By
Additional Articles
2009/11/18
|
Source:
SimpleTalk
|
Category:
aggregates
Rating:
Rate this
|
Briefcase
|
3,991 reads
Dynamic Columns with PIVOT Operator
Script to convert to N Columns the rows in a table with PIVOT Operator
Read more...
By
Felix Garcia Cruz
2009/06/05
|
Source:
SQLServerCentral.com
|
Category:
pivot
Rating:
|
Discuss
|
Briefcase
|
1,756 reads
Simple Crosstab Procedure with Power
Create crosstab queries as easily as MS Access with a lot more power.
Read more...
By
cgruel
2010/06/02
|
Source:
SQLServerCentral.com
|
Category:
crosstab
Rating:
|
Discuss
|
Briefcase
|
3,069 reads
Dynamic table not imposible
I needed to display my data in columns but could not use pivots or cross tables because it wasn't a fix amount of columns. so I created this script, I hope is useful.
Read more...
By
William Mendoza
2009/02/20
|
Source:
SQLServerCentral.com
|
Category:
t-sql
Rating:
|
Discuss
|
Briefcase
|
1,726 reads
The Ultimate Index Width Stats Reporter
Reports index length stats for indexes who's lengths exceeding parametrized thresholds (defaults to 0 - get all) for total length and seek length, optionally filtering schemas and tables.
Read more...
By
Jesse Roberge
2009/01/28
|
Source:
SQLServerCentral.com
|
Category:
t-sql
Rating:
|
Discuss
|
Briefcase
|
1,622 reads
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
In Part 1, we learned how to make both Cross-Tabs and Pivots. In Part 2, we'll learn how to automate a very common type of Cross-Tab report and maybe learn some extra tricks on the way.
Read more...
By
Jeff Moden
2010/04/30 (first published: 2008/12/03)
|
Source:
SQLServerCentral.com
|
Category:
crosstab
Rating:
|
Discuss
|
Briefcase
|
37,865 reads
The Ultimate Prospective-Index Column(s) Selectivity Analyzer
Gets single-column and cumulative-column selectivity stats and @Top largest dupe sets for each cumulative column stepping for a set of one or more columns for a table.
Read more...
By
Jesse Roberge
2008/10/24
|
Source:
SQLServerCentral.com
|
Category:
indexing
Rating:
|
Discuss
|
Briefcase
|
2,032 reads
The Ultimate Duplicate Index Finder
Searches database-wide for multiple indexes in the same table which has the same column as the first seek key. Optionally limits to LIKE wildcard patterns of table and schema names.
Read more...
By
Jesse Roberge
2008/10/17
|
Source:
SQLServerCentral.com
|
Category:
indexing
Rating:
|
Discuss
|
Briefcase
|
2,848 reads
The Ultimate Index Usage Reporter
Reports index stats, index size+rows, member seek + include columns as two comma separated output columns, and index usage stats for one or more tables and/or schemas.
Read more...
By
Jesse Roberge
2012/12/27
|
Source:
SQLServerCentral.com
|
Category:
indexing
Rating:
|
Discuss
|
Briefcase
|
7,201 reads
Demonstration on how to pivot data using temp tables
This script was designed to 'pivot' data that couldnt easily be pivoted in any other way. i used temporary tables to eventually achieve the result i was looking for :)
Read more...
By
Chris Morton
2013/05/21
|
Source:
SQLServerCentral.com
|
Category:
dynamic sql
Rating:
|
Discuss
|
Briefcase
|
795 reads
The Ultimate Index Lister (Pivoted)
Lists details for all indexes on one or more tables / schemas, including row count and size. This version outputs the member seek + include columns as two comma separated output columns.
Read more...
By
Jesse Roberge
2008/10/09
|
Source:
SQLServerCentral.com
|
Category:
indexing
Rating:
|
Discuss
|
Briefcase
|
2,339 reads
Items 1 to 20 of 21
Next 20 >>
Tags
t-sql
(13)
crosstab
(6)
sql server 2005
(6)
administration
(5)
indexing
(5)
maintenance
(5)
maintenance and management
(5)
performance tuning
(5)
utility
(5)
for xml path
(4)
list indexes
(4)
sys.dm_db_partition_stats
(4)
.net
(1)
aggregates
(1)
blogs
(1)
correlation
(1)
cross apply
(1)
duplicate indexes
(1)
dynamic sql
(1)
execute
(1)
nested loop
(1)
parameters
(1)
procedure
(1)
report
(1)
selectivity
(1)
separator
(1)
split
(1)
sqlclr
(1)
stored procedures
(1)
sys.dm_db_index_usage_stats
(1)
tally table
(1)
temporary tables
(1)
tvp
(1)
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.