Web design and hosting, database, cloud and social media solutions that deliver business results
  • Des solutions d'affaires
    • Automatisation des processus robotiques
    • Logiciel
    • Services de base
      • Intégration de données
      • Power BI
      • Services d'entrepôt de données
      • Tools
    • Conception de site Web
      • Localisation et traduction Web
      • Sécurité du site Web
    • Services Cloud
      • Microsoft Azure
    • Média Social
    • Microsoft Office
  • Académie
    • Conception de bases de données d'apprentissage
      • Utilisation de données SQL Server
      • Obtenir la requête ouverte
      • Plan de maintenance SQL Server 2008
      • Utilisation des dates SQL Server
      • Utilisation de SQL Server Pivot-Unpivot
      • Utiliser SQL Server Fonctions
    • Apprentissage de la conception Web
      • CSS
      • ASP NET
    • Cloud d'apprentissage et services informatiques
      • Demande SSL et génération de fichier PFX dans OpenSSL étapes simples
  • Sur
    • Carrières
    • Équipe
      • Ali Al Amine
      • Chester Copperpot
      • Gavin Clayton
      • Suneel Kumar
    • Portefeuille
عربى (AR)čeština (CS)Deutsch (DE)English (EN-GB)English (EN-US)Español (ES)فارسی (FA)Français (FR)हिंदी (HI)italiano (IT)日本語 (JA)polski (PL)Português (PT)русский (RU)Türk (TR)中国的 (ZH)

Utilisation de SQL Server Pivot-Unpivot

Une sélection d'articles sur l'utilisation de 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
Copyright Claytabase Ltd 2020

Registered in England and Wales 08985867

RSSLoginLink Politique de cookieSitemap

Social Media

facebook.com/Claytabaseinstagram.com/claytabase/twitter.com/Claytabaselinkedin.com/company/claytabase-ltd

Get in Touch

+442392064871info@claytabase.comClaytabase Ltd, Unit 3d, Rink Road Industrial Estate, PO33 2LT, United Kingdom
Les paramètres de ce site sont configurés pour autoriser tous les cookies. Ceux-ci peuvent être modifiés sur notre page cookies. En continuant à utiliser ce site, vous acceptez l'utilisation de cookies.
Ousia Logo
Logout
Ousia CMS Loader