Difference between revisions of "HR.EMP DETAILS VIEW (view)"

From dbscript Online Help
Jump to: navigation, search
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
+
| '''View
 
| HR.EMP_DETAILS_VIEW
 
| HR.EMP_DETAILS_VIEW
 
|-
 
|-
Line 9: Line 9:
  
  
 +
=== Source ===
 
<pre>
 
<pre>
 
CREATE OR REPLACE VIEW HR.EMP_DETAILS_VIEW AS  
 
CREATE OR REPLACE VIEW HR.EMP_DETAILS_VIEW AS  
Line 42: Line 43:
 
WITH READ ONLY
 
WITH READ ONLY
 
</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.EMPLOYEES_(table)|HR.EMPLOYEES]]
 +
 +
|}

Revision as of 08:26, 11 February 2010

wikibot

View HR.EMP_DETAILS_VIEW


Source

CREATE OR REPLACE VIEW HR.EMP_DETAILS_VIEW AS 
SELECT
  e.employee_id,
  e.job_id,
  e.manager_id,
  e.department_id,
  d.location_id,
  l.country_id,
  e.first_name,
  e.last_name,
  e.salary,
  e.commission_pct,
  d.department_name,
  j.job_title,
  l.city,
  l.state_province,
  c.country_name,
  r.region_name
FROM
  employees e,
  departments d,
  jobs j,
  locations l,
  countries c,
  regions r
WHERE e.department_id = d.department_id
  AND d.location_id = l.location_id
  AND l.country_id = c.country_id
  AND c.region_id = r.region_id
  AND j.job_id = e.job_id
WITH READ ONLY

References

Dependency Type Object Type Referenced Object
Select Table HR.EMPLOYEES