About 1,680,000 results
Open links in new tab
  1. Turning a Comma Separated string into individual rows

    If original data contain rows with NULL values in the column to be split (column 'Data' in this question) by STRING_SPLIT, those rows are omitted in the result (column 'SplitData' in this …

  2. SQL Query to Convert Rows to Columns in SQL Server

    Dec 16, 2021 · We can convert rows into column using PIVOT function in SQL. Syntax: AggregateFunction(ColumnToBeAggregated) FOR PivotColumn IN (PivotColumnValues) …

  3. Rolling up multiple rows into a single row and column for SQL

    Dec 19, 2024 · SQL Server T-SQL code to create the above result set by rolling up multiple rows into a single row using FOR XML PATH and the STUFF function: SS.SEC_NAME, …

  4. How to convert rows to columns (PIVOT) and back again …

    Sep 8, 2016 · Oracle Database 11g introduced the pivot operator. This makes switching rows to columns easy. To use this you need three things: The value in the new columns must be an …

  5. 4 ways to convert delimited string data into individual rows in SQL ...

    Jul 5, 2021 · Lets go through this step-by-step by first looking at why we are using LEFT() and STUFF(). LEFT() will basically extract the individual values from CSV strings that we'll then …

  6. Select column with row number concatenated in SQL Server

    Sep 6, 2017 · You can use the following - SELECT CAST(ID AS NVARCHAR)+' '+CAST(ColName AS NVARCHAR) FROM tb_Table

  7. How to convert rows values into different columns based on the …

    So I just want to convert the rows into columns depending on a particular scenario which is based on the value of one of the Columns (OPTFIELD) Example: - When OPTFIELD ='CHANNELAP' …

  8. Convert Rows To Columns In SQL Server Using Dynamic Pivot

    In this article, we will explain how to Convert Rows To Columns In SQL Server Using Dynamic Pivot step by step. Applies To SQL Server 2017. SQL Server 2016. SQL Server 2012. SQL …

  9. SQL Query to Convert Rows to Columns in SQL Server

    In this article, we learned how to convert Rows to Columns in SQL Server. You can also use the UNPIVOT operator to do the reverse, i.e., to convert columns to rows.

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

    Mar 10, 2011 · In other words, you can use a Cross Tab or Pivot to convert or transpose information from rows to columns either for reporting or to convert some special long skinny …

  11. Some results have been removed
Refresh