group by 一般用在结尾 ,where 语句
group 语句一般是由两个变量组成,多个变量会造成无法创建,因为所依据的变量过多。
not in, 括号等的作用
示例
select 部门号,max(成绩) as 成绩 from Employee
where (部门号,成绩) not in (select * from temp_v1)
group by 部门号;