select a.col_name1,max(b.col_name2) from table_a , table_b b where
a.candidate_id = 900 and a.col_name1 = b.col_name1 and a.col_name2=
302885 group by b.candidate_id;
これはクエリであり、私にとっては正常に機能しています
しかし、 max(b.col_name2) を使用すると、このエラーが発生します1111 invalid use of group function
。
select a.col_name1,max(b.col_name2) from table_a , table_b b where
a.candidate_id = 900 and a.col_name1 = b.col_name1 and a.col_name2=
max(b.col_name2)group by b.candidate_id;
max(b.col_name2)
値の使用方法
助けてください。よろしくお願いします..