如何将两列相乘,然后在ElasticSQL中求和?

时间:2019-02-06 01:09:39

标签: mysql sql elasticsearch

嗨,我想将一个值减去一列,然后乘以两列,最后求和:

import re
phoneRegex = re.compile(r'((\d\d\d-)?\d\d\d-\d\d\d\d(,)?){3}') 
mo = phoneRegex.search('My numbers are 415-555-1234, 555-4242, 212-555-0000.')
print(mo)

但是在 Elasticsearch ElasticSQL 中,我遇到了以下错误:

SELECT SUM(column_a*(column_b-1)) AS result FROM table_1 WHERE column_c='G' AND column_d='H' AND column_b>1.00

0 个答案:

没有答案