You are on page 1of 4

12/2/2020 Performance Task 1: Attempt review

Dashboard / My courses / BAED-PROG3114-2022S / Week 2-4: Introduction to PLSQL / Performance Task 1

Started on Wednesday, 2 December 2020, 10:15 AM


State Finished
Completed on Wednesday, 2 December 2020, 10:21 AM
Time taken 6 mins
Grade 8.00 out of 10.00 (80%)

Question 1
Complete

Mark 1.00 out of 1.00

Display the name, jobs id and salary of the all the employees whose department id is 100 and salary is below 8000. Arrange the output by
salary in ascending order.

Select one:
a. SELECT first_name, last_name, salary FROM employees WHERE salary < 8000 AND department_id = 100 AND ORDER BY
department_id

b. SELECT first_name, last_name, salary FROM employees WHERE department_id = 100 AND salary < 8000 ORDER BY salary

c. SELECT first_name, last_name, salary FROM employees ORDER BY salary WHERE department_id = 100 AND salary > 8000

d. SELECT name, salary FROM employees WHERE department_id = 100 AND salary < 8000 ORDER BY salary ASC

e. SELECT employees FROM first_name, last_name, salary WHERE department_id = 100 AND salary < 8000 ORDER BY salary ASC

f. SELECT name FROM employees WHERE salary < 8000 AND department_id = 100 AND ORDER BY department_id

Question 2
Complete

Mark 1.00 out of 1.00

Display the employee id, number of years and the hiring date of every employee in the company.

Select one:
a. SELECT employee_id, hire_date, hire_date- SYSDATE /365 FROM employees;

b. SELECT employee_id, hire_date, ROUND((SYSDATE - hire_date),0 /365,0) FROM employees;

c. SELECT employee_id, hire_date, hire_date /365 FROM employees;

d. SELECT employee_id, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM employees;

https://shs.amaesonline.com/2022/mod/quiz/review.php?attempt=37773&cmid=3663 1/4
12/2/2020 Performance Task 1: Attempt review

Question 3
Complete

Mark 1.00 out of 1.00

1. The two development environments of Oracle are _______________ and ______________.

Select one:
a. Oracle SQL Developer; ANSI SQL Web

b. Oracle DB; SQL command line

c. ANSI SQL Web; Oracle Net SQL

d. Oracle SQL Developer; SQL command line

Question 4
Complete

Mark 1.00 out of 1.00

Using Data Manipulation Language, you can ADD columns in the table.

Select one:
True

False

Question 5
Complete

Mark 0.00 out of 1.00

Which of the following SELECT statement is the correct report that will display the unique value for WAREHOUSE renames the column as
"No. of Available Warehouse".

Select one:
a. SELECT DISTINCT WAREHOUSE AS "No. of available warehouse" FROM PARTS;

b. SELECT DISTINCT COLUMN WAREHOUSE AS "No. of available warehouse" FROM PARTS;

c. SELECT DISTINCT WAREHOUSE AS No. of available warehouse FROM PARTS;

d. SELECT DISTINCT 'WAREHOUSE AS' "No. of available warehouse" FROM PARTS;

https://shs.amaesonline.com/2022/mod/quiz/review.php?attempt=37773&cmid=3663 2/4
12/2/2020 Performance Task 1: Attempt review

Question 6
Complete

Mark 1.00 out of 1.00

Display all the employee's id and salary whose annual salary is from 100,000 to 200,000. Arrange the output by salary in descending order.

Select one:
a. SELECT employee_id, salary FROM employees WHERE salary *12 >= 100000 AND salary *12 <= 200000 ORDER BY salary

b. SELECT employee_id, salary, salary *12 FROM employees WHERE 12* salary = 100000 AND 12 *salary = 200000 ORDER BY salary

c. SELECT employee_id, salary FROM employees WHERE salary *12 >= 100000 AND salary *12 <= 200000 ORDER BY salary desc

d. SELECT employee_id, salary FROM employees WHERE salary >= 100000 AND salary <= 200000 ORDER BY salary

Question 7
Complete

Mark 0.00 out of 1.00

Which of the following SELECT statement is the correctreport the will merge the column CLASS and PRICE rename the COLUMN as "CLASS
PRICE".

Select one:
a. SELECT (CLASS||PRICE) AS "CLASS PRICE" FROM PARTS;

b. SELECT (CLASS||PRICE) CLASS PRICE FROM PARTS;

c. SELECT (CLASS||PRICE) AS CLASS PRICE FROM PARTS;

d. SELECT ('CLASS'||'PRICE') AS "CLASS PRICE" FROM PARTS;

Question 8
Complete

Mark 1.00 out of 1.00

Display the montly salary of every employee. Round the salary in 2 decimal places.

Select one:
a. SELECT (ROUND(salary,2) )/12 FROM employees;

b. SELECT RND(salary,2)/12 FROM employees;

c. SELECT ROUND(salary *12 , 2) /12 FROM employees;

d. SELECT RND( (salary/12),2 ) FROM employees;

e. SELECT ROUND( (salary/12),2 ) FROM employees;

https://shs.amaesonline.com/2022/mod/quiz/review.php?attempt=37773&cmid=3663 3/4
12/2/2020 Performance Task 1: Attempt review

Question 9
Complete

Mark 1.00 out of 1.00

Ronnie is the stockman in the warehouse of ATR Corporation. The General Manager wants to know the parts whose price is above 10000
and above. Which of the following SQL command that Ronnie will run to generate the list.

Select one:
a. SELECT parts FROM price WHERE price >= 10000;

b. SELECT * FROM parts WHERE price <= 10000;

c. SELECT * FROM parts WHERE price >= 10000;

d. SELECT * FROM parts WHERE price > 10000;

e. SELECT ALL FROM parts WHERE price < 10000;

f. SELECT ALL FROM parts WHERE price > ‘10000’;

Question 10
Complete

Mark 1.00 out of 1.00

Which of the following SELECT statement is the correct PL/SQL that willcreate a report specifying only the column PRICE, ONHAND and
DESCRIPTION?

Select one:
a. SELECT PRICE, ONHAND, DESCRIPTION FROM PARTS;

b. SELECTONHAND,PRICE ,DESCRIPTION FROM PARTS;

c. SELECTONHAND,PRICE DESCRIPTION FROM PARTS ORDER BY ONHAND;

d. SELECT (ONHAND||PRICE ||DESCRIPTION FROM PARTS;

◄ Week 002-004 Declaring Variables

Jump to...

Written Work 1 ►

https://shs.amaesonline.com/2022/mod/quiz/review.php?attempt=37773&cmid=3663 4/4

You might also like