Web design and hosting, database, cloud and social media solutions that deliver real business results
  • Servizi database
    • Strumenti
      • Backup del codice SQL
      • Claytabase Server Disk IOPs Calculator
      • Stampante SQL
    • Articoli tecnici
      • Piano di manutenzione di SQL Server 2008
      • Utilizzo dei dati di SQL Server
      • Utilizzo delle date di SQL Server
      • Utilizzo delle funzioni di SQL Server
      • Utilizzo di SQL Server Pivot-Unpivot
  • Sito Web Design
    • Articoli tecnici
      • ASP-NET
      • CSS
    • isola di Wight
    • Sicurezza del sito
  • Servizi per gli affari
    • Microsoft Azure
    • Microsoft Office
  • Circa
    • Portafoglio
    • Squadra
      • Chester Copperpot
AR - عربىCS - češtinaDE - DeutschEN - EnglishES - EspañolFA - فارسیFR - FrançaisHI - हिंदीJA - 日本語PL - polskiPT - PortuguêsRU - русскийTR - TürkZH - 中国的

Utilizzo di SQL Server Pivot-Unpivot

Una selezione di articoli sull'utilizzo di SQL Server PIVOT
Using Pivot & Unpivot

PIVOT and UNPIVOT in SQL Server can be used in some amazing ways. Using some real world examples, we are going to show you what can be done.

Each stage gets a bit more complex, so step through each if you can.

1: Using UNPIVOT

Turn columns into rows, for instance useful when you need to break up a large table with months as columns.

More: SQL Server using UNPIVOT to turn columns into rows

2: Using PIVOT

Turn rows into columns, great for displaying data on an SSRS report.

More: SQL Server using PIVOT example

3: Using PIVOT with dynamic SQL

Use dynamic SQL to extend this function to any unknown column names.

More: SQL Server using PIVOT with dynamic SQL example

4: Using PIVOT and UNPIVOT together

Combine the two to re-build a table without a mass of CASE statements, or transfer data in a neutral form.

More: SQL Server using PIVOT and UNPIVOT together
RSS Login ContactCookie PolicyMappa del sito
facebook.com/Claytabaseinstagram.com/claytabase/twitter.com/Claytabaselinkedin.com/company/claytabase-ltd
+442392064871info@claytabase.co.ukGround Floor, Building 1000, Lakeside North Harbour, Western Road, Portsmouth, Hampshire, United Kingdom, PO6 3EZ
Partners
Le impostazioni di questo sito sono impostate per consentire tutti i cookie. Questi possono essere modificati sulla nostra pagina politica e le impostazioni dei cookie. Continuando a utilizzare questo sito l'utente accetta l'utilizzo dei cookie.
Ousia Logo
Ousia CMS Loader