Select severity_id, pt.People, Assets, Environment, Reputation
FROM
(
select * from COMM.Consequence
) As Temp
PIVOT
(
max([DESCRIPTION])
FOR [TYPE] In([People], [Assets], [Environment], [Reputation])
) As pt
Select severity_id, pt.People, Assets, Environment, Reputation
FROM
(
select * from COMM.Consequence
) As Temp
PIVOT
(
max([DESCRIPTION])
FOR [TYPE] In([People], [Assets], [Environment], [Reputation])
) As pt
SQL Server - literal boolean?
Tambahkan warna baris bergantian ke laporan layanan Pelaporan SQL Server
Bagaimana Anda mencapai batas 8060 byte per baris dan nilai 8000 per (varchar, nvarchar)?
Pemulihan SQL Server 2017
Kueri server SQL untuk mendapatkan daftar kolom dalam tabel bersama dengan tipe Data, NOT NULL, dan batasan PRIMARY KEY