Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

12/2/2020 Performance Task 1

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

Question 1
Not yet answered

Marked out of 1.00

Display all employees id and remainder of the his/her salary after it is divided by 3,000 for all employees with the job id of IT_PROG.

Select one:
a. SELECT employee_id, job_id, salary, salary/3000 FROM employees WHERE job_id = 'IT_PROG'

b. SELECT employee_id, job_id, salary, MOD(salary, 3000) FROM employees WHERE job_id = 'IT_PROG'

c. SELECT employee_id, job_id, salary, REM(salary/3000) FROM employees WHERE job_id = 'IT_PROG'

d. SELECT employee_id, job_id, salary FROM employees WHERE job_id = 'IT_PROG' AND salary/3000

e. SELECT employee_id, job_id, salary FROM employees WHERE job_id = 'IT_PROG' AND MOD(salary, 3000)

Clear my choice

Question 2
Not yet answered

Marked out of 1.00

Display the first 3 letter in the first name of all the employees.

Select one:
a. SELECT SUBSTR(first_name,3) FROM employees;

b. SELECT SUBSTR(first_name,1,3) FROM employees;

c. SELECT SUBSTRING(first_name,1,3) FROM employees;

d. SELECT SUBSTRING(first_name,1,3) FROM employees;

Clear my choice

Question 3
Not yet answered

Marked out of 1.00

Using CREATE SQL Command, you can add new records in the table.

Select one:
True

False

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

Question 4
Not yet answered

Marked out of 1.00

Display the total number of characters of the last name of all the employees.

Select one:
a. SELECT TOTALCHAR(last_name),LAST_NAME FROM EMPLOYEES;

b. SELECT LENGTH(last_name) FROM employees;

c. SELECT LEN(last_name) FROM employees;

d. SELECT TOTAL(last_name) FROM employees;

Clear my choice

Question 5
Not yet answered

Marked out of 1.00

SQL stands for

Select one:
a. Structured Query Language

b. Standard Query Language

c. Standard Question Language

d. Structure Query Level

e. Sequential Query Level

Clear my choice

Question 6
Not yet answered

Marked out of 1.00

Display part number description and warehouse number whose part number starts with letter K.

Select one:
a. SELECT partnum, description, warehouse FROM parts WHERE partnum = LIKE ‘K%’;

b. SELECT partnum, description, warehouse FROM parts WHERE partnum LIKE '*K*';

c. SELECT * FROM parts WHERE partnum LIKE 'K_';

d. SELECT partnumber, description, warehouse FROM parts WHERE partnum = LIKE ‘K%’;

e. SELECT partnum, description, warehouse FROM parts WHERE partnum LIKE 'K%';

f. SELECT partnumber, description, warehouse FROM parts WHERE partnum LIKE 'K*';

g. SELECT * FROM parts WHERE partnum LIKE 'K%';

Clear my choice

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

Question 7
Not yet answered

Marked out of 1.00

Display the last day of the month and the hiring date when the employees are hired in the company.

Select one:
a. SELECT LDAY(hire_date), hire_date FROM employees;

b. SELECT LAST_DAY(hire_date), hire_date FROM employees;

c. SELECT LASTDAY(hire_date), hire_date FROM employees;

d. SELECT LAST(hire_date), hire_date FROM employees;

Clear my choice

Question 8
Not yet answered

Marked out of 1.00

Command use to display table structure

Select one:
a. DISPLAY STRUCTURE

b. DISPLAY TABLE

c. DESCRIBE

d. DISPLAY

Clear my choice

Question 9
Not yet answered

Marked out of 1.00

Display the part number whose class is not HW, AG or SG.

Select one:
a. SELECT partnum FROM parts WHERE NOT IN class ('HW', 'AG', SG')

b. SELECT partnum FROM parts WHERE class NOT IN = (‘HW’, AG’, SG’)

c. None of the choices

d. SELECT partnum FROM parts WHERE class NOT IN ('HW', 'AG', SG')

Clear my choice

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

Question 10
Not yet answered

Marked out of 1.00

Each row of data in a table can be uniquely identified by a

Select one:
a. foreign key

b. relational key

c. local key

d. primary key

e. index key

Clear my choice

◄ Week 002-004 Declaring Variables

Jump to...

Written Work 1 ►

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

You might also like