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