0
SQL Serverで単純な転置を行い、1行と複数の列を表示したいと考えています。私はピボットとアンピボットを見ており、このシナリオでは複雑すぎるようです。私は、行を取得するには、単純なSQLクエリを実行しています:SQL Serverで単純な転置
select name
from sys.databases
where name like '%trn%'
サンプルデータ:
prpc_trn
prpc_trn_arc
prpc_trn_IntegrationAuditDetails
prpc_trn_IntegrationAuditDetailsArchive
prpc_trn_Lumley
prpc_trn_PerformanceLoggingDetails
prpc_trn_PerformanceLoggingDetailsArchive
prpc_trn_prHistory
prpc_trn_prHistoryArchive
prpccpmi_trn
prpcref_trn
質問を編集し、サンプルデータと希望する結果を提供してください。 –