Ich suche einige Daten aus dieser AbfrageSQL Server Pivot-Code Hilfe benötigt
select
count(*) as total_customers,
sum(last_year) as customers_in_last_year
sum(two_years) as customers_in_last_2_years
from
Customers
, die dieses Ergebnis zurückgibt zu schwenken:
total_customers customers_in_last_year customers_in_last_2_years
500 100 200
Was ich tun möchte, dass auf die unten kippen , irgendeine Hilfe?
total_customers 500
customers_in_last_year 100
customers_in_last_2_years 200
Dank