我有一个有订单号,取消日期和原因的表。 原因字段是varchar(255)字段,它由许多不同的销售代表编写,并且很难根据我需要生成报告以对取消原因进行分类的原因类别进行分组。使用TSQL分析原因的最佳方法是什么?TSQL用于分析文本的查询
样品由销售代表
cust already has this order going out
cust can not hold for item Called to cancel order
cust doesn't want to pay for shipping
wife ordered same item from different vendor, sent email
cst made a duplicate order, sent email
cst can't hold
Cust doesn't want to go through verification process so is cancelling order
doesn't ant to hold for Bo
doesn't want
Cust called to cancel the order He can no longer get the product he wants
cnt hld
will not comply with export req
cant' hold
Custs request
Cust will not hold for BO
per. cust. request.
进入的原因BTW我有SQL Server的问题,2005年
谢谢。我虽然这样。但问题是我们使用第三方订单处理应用程序,我们将无法设置原因列表。但我可以在桌面上添加额外的列,但问题仍然保持不变。 – THEn 2009-12-04 20:39:01