Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试运行查询,但出现“'where 子句'中的未知列'MyField'”错误。
这是我的查询:
SELECT id, sum(lineValue * quantity) as TotalLine FROM myTable WHERE (TotalLine BETWEEN 10 and 500) group by id
如何执行类似的查询?谢谢
SELECT id, SUM(lineValue * quantity) as TotalLine FROM myTable GROUP BY id HAVING TotalLine BETWEEN 10 and 500