About 200,000 results
Open links in new tab
  1. Introduction to PIVOT operator in SQL - SQLServerCentral

    Feb 25, 2020 · In SQL, there is a PIVOT operator available which is helpful in creating such pivot tables. The way the PIVOT operator works is by rotating a table-valued expression.

  2. Cross Tabs and Pivots, Part 1 – Converting Rows to Columns

    Mar 10, 2011 · Last but certainly not least, we've discovered that there's no reason to rewrite properly written Cross Tabs to become Pivots when shifting from SQL Server 2000 to SQL Server 2005.

  3. Dynamic Pivot, Passing Temp Table Variables to Dynamic SQL

    May 20, 2010 · This example demonstrates how to perform a pivot using dynamic headers based on the row values of a table. The article also shows how to pass a temp table variable to a Dynamic SQL call.

  4. convert NULL to 0 in Pivot Result Set - SQLServerCentral

    Jan 25, 2010 · (min(Total) for Columns in ('+@Columns+')) pivottable Order by Id, TagId exec(@sql) I tried to use the IsNull function in the pivot and it doesnt work. Is anyway to convert the null result to 0 …

  5. Need to PIVOT without aggregate function - SQLServerCentral

    Jul 25, 2006 · I want to PIVOT tables where it is not necessary to sum or count or otherwise aggregate data. Every example of using PIVOT that I can find includes pivoting on an aggregate function, e.g. …

  6. Looking for simple non-aggregate version of PIVOT to transpose Rows ...

    Oct 23, 2019 · Looking for simple non-aggregate version of PIVOT to transpose Rows into Columns Forum – Learn more on SQLServerCentral

  7. PIVOT without aggregate function? – SQLServerCentral Forums

    Aug 14, 2014 · PIVOT without aggregate function? Forum – Learn more on SQLServerCentral

  8. how to remove null values from pivot sql - SQLServerCentral

    May 27, 2020 · Home Forums SQL Server 2017 SQL Server 2017 - Development how to remove null values from pivot sql Post reply

  9. Adding GROUP BY to PIVOT operator (how?) - SQLServerCentral

    Sep 10, 2012 · I am able to get the first part of this problem solved with a PIVOT (showing 1 employee under each year) but I'm unable to add a GROUP BY clause after the PIVOT that will rollup each …

  10. How to Pivot without an aggregate – SQLServerCentral Forums

    May 26, 2009 · How to Pivot without an aggregate Forum – Learn more on SQLServerCentral