1z1-071 Free Dumps Study Materials
Question 5: You need to list the employees in DEPARTMENT_ID 20 days in a single row, ordered by
HIRE_DATE.
Examine the sample output:
Which query will provide the required output?
A. SELECT LISTAGG(last_name)WITHIN GROUP ORDER BY (hire_date) "Emp_list", MIN(hire_date)
"Earliest"FROM employeesWHERE department_id = 30;
B. SELECT LISTAGG(last_name, '; ') "Emp_list", MIN(hire_date) "Earliest"FROM employeesWHERE
department_id = 30;WITHIN GROUP ORDER BY (hire_date);
C. SELECT LISTAGG(last_name, '; ')WITHIN GROUP ORDER BY (hire_date) "Emp_list", MIN(hire_date)
"Earliest"FROM employeesWHERE department_id = 30;
D. SELECT LISTAGG(last_name, '; ') "Emp_list", MIN(hire_date) "Earliest"FROM employeesWHERE
department_id = 30;ORDER BY (hire_date);
Correct Answer: C