需要帮助分割列中的值。这里是我到目前为止
将值拆分为sql server中的case语句的列
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
正在future06
列两个主要产品。 而不是有future06
作为第三列,我想有 Books
和Video
旁边recordid
和productname
。
将生活有输出的样子:
RecordID ProductName Books Video
你这么多,现在如果它只获得销售到其各自栏目的数量?任何建议? – user2146490 2013-03-27 12:36:00