列の値を分割するのに助けが必要です。これが私がこれまでに得たものです
select
recordid, productname,
case when future06 like '%418%' then (Books
case when future06 like '%421%' then (Video) else null
end
from schema.dbo.table1
Books
とは、列Video
の下にある2つの主要な製品です。future06
3番目の列として持つ代わりに、とと一緒にとfuture06
の両方を持ちたいと思います。Books
Video
recordid
productname
出力を次のように表示することはできますか?
RecordID ProductName Books Video