是否有这样的公式:
mainId docId groupId code product price qty descrip expDate 123 1 1 6 pencil 20 1 long/yellow/hard 1/2/2014 123 2 2 8 book 10 1 thick/green 2/1/2014 123 3 3 6 pencil 20 1 long/yellow/hard 1/2/2014 123 4 4 9 pencil 20 1 long/yellow/hard 1/2/2014 123 5 5 6 pencil 20 1 long/yellow/hard 1/2/2014如果产品,代码,价格,描述和expDate都相同,则必须合并
结果:
product: pencil descrip: long/yellow/hard 1/2/2014 6 Computation: 20x1 20 product: pencil descrip: long/yellow/hard 1/2/2014 9 Computation: 20x1 20 product: book descrip: thick/green 2/1/2014 8 Computation: 10x1 10
单词(product,descrip和Computation)上方是文本标签。有没有办法可以检查字段(产品,代码,价格,描述和expDate)是否相同。
我做的是我放
groupbyproduct
Details area: product(label) computation(w/ code) total(computation total - code)
groupbyproduct的结尾