【发布时间】:2017-08-25 00:49:08
【问题描述】:
我在 Cognos 中创建了一个列表报告,LAST NAME 列当前是 Lastname,Firstname 的顺序,除了 Firstname 之外没有空格,包括第二个名字。
从当前的设置中
LAST_NAME COLUMN
Morello,Mortel
Chopra,Deepak
Fothergill,Mike Edward
Smith,David
我希望得到这个结果。
NEW DATA ITEM
Mortel Morello
Deepak Chopra
Mike Edward Fothergill
David Smith
我尝试使用子字符串函数,但它不起作用。
substring(LAST_NAME, position(',', LAST_NAME)+1,
inStr(LAST_NAME, ' ',position(',', LAST_NAME)+1, 1))
【问题讨论】: