You are on page 1of 1

Self-Review on Pages 35-37 – CLO1:

1. Create another LOV to show a list of Job Titles. The Job Id field should display the title of the
job rather than the id.

Query:
SELECT Job_Title as display, Job_id as return
from HR_Jobs
order by Job_Title

Null display value: -- Select Job Title –

SELECT department_name as display, department_id as return


from hr_departments
order by department_name

SELECT Job_Title as display, Job_id as return from


from HR_Jobs
order by Job_Title

SELECT E.FIRST_NAME || ' ' || E.LAST_NAME as display, E.Employee_ID as return from


HR_DEPARTMENTS D, HR_EMPLOYEES E
where D.MANAGER_ID = E.Employee_ID

You might also like