質問編集履歴

1

スペースの問題で別のエラーが出てしまっていたので修正しました。

2021/04/05 06:31

投稿

yanyan_tsukebo
yanyan_tsukebo

スコア4

test CHANGED
File without changes
test CHANGED
@@ -16,15 +16,11 @@
16
16
 
17
17
  ### 発生している問題・エラーメッセージ
18
18
 
19
-
20
-
21
19
  ```
22
20
 
23
- MariaDB [studyDB]> select entry,sum(salary) from pay group by entry having id != 'P01';
21
+ select entry,sum(salary) from pay group by entry having id != 'P01';
24
22
 
25
- ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'havingid != 'P01'' at line 1
23
+ ERROR 1054 (42S22): Unknown column 'id' in 'having clause'
26
-
27
-
28
24
 
29
25
  また。payは以下のようなものです。
30
26
 
@@ -66,7 +62,7 @@
66
62
 
67
63
  ```ここに言語名を入力
68
64
 
69
- select entry,sum(salary) from pay group by entry having id != 'P01';
65
+ select entry,sum(salary) from pay group by entry having id != 'P01';
70
66
 
71
67
  ```
72
68