Difference between revisions of "OE.DEPTVIEW (view)"
Line 3: | Line 3: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- | |- | ||
− | | ''' | + | | '''View |
| OE.DEPTVIEW | | OE.DEPTVIEW | ||
|- | |- | ||
Line 9: | Line 9: | ||
+ | === Source === | ||
<pre> | <pre> | ||
CREATE OR REPLACE VIEW OE.DEPTVIEW AS | CREATE OR REPLACE VIEW OE.DEPTVIEW AS | ||
Line 22: | Line 23: | ||
FROM departments d | FROM departments d | ||
</pre> | </pre> | ||
+ | |||
+ | === References === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | Table | ||
+ | | [[HR.DEPARTMENTS_(table)|HR.DEPARTMENTS]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | Table | ||
+ | | [[HR.EMPLOYEES_(table)|HR.EMPLOYEES]] | ||
+ | |||
+ | |} |
Revision as of 08:27, 11 February 2010
wikibot
View | OE.DEPTVIEW |
Source
CREATE OR REPLACE VIEW OE.DEPTVIEW AS SELECT xmlelement("Department", xmlForest(department_name, location_id), (SELECT sys_xmlagg(xmlelement("Employee",xmlForest(last_name, job_id,manager_id, hire_date, salary, commission_pct) ), xmlformat('EmployeeList')) FROM employees e WHERE e.department_id = d.department_id )) xml FROM departments d
References
Dependency Type | Object Type | Referenced Object |
Select | Table | HR.DEPARTMENTS |
Select | Table | HR.EMPLOYEES |