Computer Programming (Oracle Database) 11 - Q3 - PT1
Computer Programming (Oracle Database) 11 - Q3 - PT1
Department of Education
REGION I
SCHOOLS DIVISION OF CANDON CITY
Candon City, Ilocos Sur
PERFORMANCE TASK 1
Computer Programming (Oracle Database) 11
Name:
Grade & Section: Date: Score:
Your goal is to help the HR manager of your company (G). You are a database programmer (R) at Oracle
Corporation. You have been asked by the HR Department of your company to create queries for their reports
(Si). The human resource (HR) manager (A) provided you with a copy of the EMPLOYEES table as your
guide and the description of the data needed by his department . Your task is to write five SQL SELECT
statements to retrieve the data from the HR database (P). Do not forget to follow the naming convention set
by the company. Each query you will be creating will be evaluated as follows (St):
Points Description
5 Query is correct and complete. Query produces the correct results. There are no syntax errors.
Naming convention is followed in all clauses. Code structure follows guidelines.
4 Query is mostly correct but has few missing components. Query executes without any syntax
errors but output is incomplete. Naming convention is followed in most of the clauses. Code
structure needs work.
3 Query is somewhat correct but executes with 1 or 2 syntax errors. Naming convention is
followed in some clauses. Code structure needs work.
2 Query is incorrect. Query executes but output is incorrect. Naming convention is not followed
in all clauses. Queries are in long lines, new lines aren't used properly (e.g. SELECT queries are
not broken by SELECT, FROM, WHERE, etc.)
1 Query does not execute or student has no answer.
2. The HR department wants a query to display all unique job IDs from the EMPLOYEES table.
3. The HR department wants more descriptive column headings for its report on employees. Display the
employee ID, first name, last name, job ID, hire date, and employee ID for each employee. Name the
column headings Emp#, Employee, Job, and Hire Date.
4. The HR department has requested a report of all employees and their job IDs. Display the last name
concatenated with the job ID (separated by a comma and space) and name the column Employee and
Title.
5. Create a query to display all the data from that table. Separate each column output by a comma. Name the
column title THE_OUTPUT.