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)
使用价值
请帮助我。在此先感谢..