select fu.user_name 用户名, fu.description 用户说明, frv.RESPONSIBILITY_NAME 职责名称, REQUEST_GROUP_NAME 报表组, (select  ppf.FULL_NAME from apps.per_people_f  ppf where fu.employee_id = ppf.PERSON_ID and trunc(sysdate)  between  trunc(ppf.EFFECTIVE_START_DATE) a…
select fu.user_name 用户名, fu.description 用户说明, frv.RESPONSIBILITY_NAME 职责名称, REQUEST_GROUP_NAME 报表组, (select  ppf.FULL_NAME from apps.per_people_f  ppf where fu.employee_id = ppf.PERSON_ID and trunc(sysdate)  between  trunc(ppf.EFFECTIVE_START_DATE) a…
/*线用户查询-1*/ SELECT FSAV.USER_NAME,FU.DESCRIPTION,FSAV.RESPONSIBILITY_NAME,FSAV.USER_FORM_NAME,FSAV.LOGIN_NAME,FSAV.TIME,FSAV.PID,FSAV.TERMINAL_ID,FSAV.USER_ID,FSAV.RESP_APPL_ID,FSAV.RESPONSIBILITY_ID,FSAV.FORM_ID,FSAV.FORM_APPL_ID FROM FND_SIGNON_AUD…
select b.user_name, b.description, b.creation_date, d.responsibility_name   from fnd_user b, fnd_user_resp_groups   c, fnd_responsibility_tl  d where b.end_date is null and b.user_id=c.user_id and c.responsibility_id=d.responsibility_id and d.languag…
select t.RESPONSIBILITY_NAME from apps.FND_RESPONSIBILITY_VL t where t.RESPONSIBILITY_NAME like '%MRP%' or t.RESPONSIBILITY_NAME like '%WIP%' or t.RESPONSIBILITY_NAME like '%BOM%' or t.RESPONSIBILITY_NAME like '%QA%'    or t.RESPONSIBILITY_NAME like…
一.SQL概述 起源于标准不再赘述,主要分为DDL,DML,DCL 相关介绍,参考MySQL章节:http://www.cnblogs.com/jiangbei/p/6696202.html 二.基本查询SELECT语句 先以SCOTT登录SQL Developer(在工具中直接打开即可,无需安装) 1.查询所有列——使用 * select * from employees; // 注意分号 也可以通过ed打开编辑器,这样可以直接在编辑器中进行换行和保存等操作,直接通过 / 进行调用(里面的SQ…
select fu.user_name 用户名,         fu.description 描述,              (select ppf.FULL_NAME                 from per_people_f ppf               where ppf.PERSON_ID = fu.employee_id                  and trunc(sysdate) between trunc(ppf.EFFECTIVE_START_DATE…
SQL总结(一)基本查询 SQL查询的事情很简单,但是常常因为很简单的事情而出错.遇到一些比较复杂的查询我们更是忘记了SQL查询的基本语法. 本文希望通过简单的总结,把常用的查询方法予以总结,希望能够明确在心. 场景:学生信息系统,包括学生信息.教师信息.专业信息和选课信息. --学生信息表 IF OBJECT_ID (N'Students', N'U') IS NOT NULL DROP TABLE Students; GO CREATE TABLE Students( ID int prim…
--1:下面这种是SQL Server中比较简单的查询SQL语句执行时间方法,通过查询前的时间和查询后的时间差来计算的: declare @begin_date datetime declare @end_date datetime select @begin_date = getdate() <这里写上你的语句...> select @end_date = getdate() select datediff(ms,@begin_date,@end_date) as '用时/毫秒'   --2…