About 70,200 results
Open links in new tab
  1. Convert Rows to columns using 'Pivot' in SQL Server

    Apr 10, 2013 · If you are using SQL Server 2005+, then you can use the PIVOT function to transform the data from rows into columns. It sounds like you will need to use dynamic sql if …

  2. sql - TSQL Pivot without aggregate function - Stack Overflow

    sql parameterised cte query The answer to that question involves a situation where pivot without aggregation is needed so an example of doing it is part of the solution.

  3. Understanding PIVOT function in T-SQL - Stack Overflow

    The pivot function works great when the source has 3 columns: One for the aggregate, one to spread as columns with for, and one as a pivot for row distribution.

  4. sql - Pivoting rows into columns dynamically in Oracle - Stack …

    Apr 22, 2017 · First of all, dynamically pivot using pivot xml again needs to be parsed. We have another way of doing this by storing the column names in a variable and passing them in the …

  5. t sql - Pivoting with Sum function in tsql - Stack Overflow

    Jul 6, 2012 · You can easily use a PIVOT for this. As the other have said you can use a Static Pivot that you code the columns that you want or you can use a Dynamic Pivot, which get the …

  6. How to Pivot table in BigQuery - Stack Overflow

    So in your standard sql example, it assumes the values to be transposed to columns are known and unchanging. Is there a way to dynamically pivot columns?

  7. hadoop - How to transpose/pivot data in hive? - Stack Overflow

    Apr 12, 2014 · I want to Pivot/ transpose this table so that each unique value in Proc1 becomes a new column, and corresponding value from Proc2 is the value in that column for the …

  8. sql - How can I Pivot a table in DB2? - Stack Overflow

    Nov 27, 2012 · How can I Pivot a table in DB2? [duplicate] Asked 12 years, 11 months ago Modified 6 years, 5 months ago Viewed 66k times

  9. sql - How to pivot rows into columns in AWS Athena? - Stack …

    I'm new to AWS Athena and trying to pivot some rows into columns, similar to the top answer in this StackOverflow post. However, when I tried: SELECT column1, column2, column3 FROM …

  10. Sql PIVOT and string concatenation aggregate - Stack Overflow

    Feb 9, 2013 · I would like to use a pivot SQL query to construct a result table where the concatenate text as a result within the DATA section of the pivot table. i.e. i have the following …