oracle 复杂语句的编写

group by 一般用在结尾 ,where 语句

group 语句一般是由两个变量组成,多个变量会造成无法创建,因为所依据的变量过多。

not in, 括号等的作用

示例

select 部门号,max(成绩) as 成绩 from Employee

where (部门号,成绩) not in (select * from temp_v1)

group by 部门号;

 

posted @ 2013-06-02 12:07  江湖道士  阅读(137)  评论(0编辑  收藏  举报