Академический Документы
Профессиональный Документы
Культура Документы
Question 1 Choose the letter of the correct answer based on the table
Not yet EMPLOYEES as shown below.
answered
Table 1.0 EMPLOYEES
Marked out of
1.00
Which of the following is the correct query that display the
maximum lastname concatenated to firstname and rename
the column as “Employees Name”, Job_id and apply the ff.
functions:
Count the Job_id; Apply where condition whose lastname
ends with letter ‘N’; Group the job_id; and Apply having clause
of employees having average salary that is greater than
10000.
Select one:
a. SELECT MAX(LASTNAME||FIRSTNAME) AS "EMPLOYEES NAME",
JOB_ID, COUNT(JOB_ID)
FROM EMPLOYEES
HAVING AVG(SALARY)>10000;
HAVING AVG(SALARY)<10000;
HAVING AVG(SALARY)>10000;
Clear my choice
Question 2 Which of the following query is correct which will display the
Answer saved same output as shown below?
Marked out of
1.00
Select one:
a. SELECT MAX(FIRSTNAME), MANAGER_ID, COUNT(SALARY),
AVG(SALARY)
FROM EMPLOYEES
GROUP BY MANAGER_ID
WHERE SALARY BETWEEN 6000 AND 10000
HAVING MIN(SALARY) >= 5000;
GROUP BY MANAGER_ID
HAVING (SALARY) >= 5000;
Clear my choice
Question 3 Which of the following query is correct which will display the
Answer saved same output as shown below?
Marked out of
1.00
Select one:
a. SELECT MIN(LASTNAME||FIRSTNAME) AS NAME,
DEPARTMENT_ID
FROM EMPLOYEES
GROUP BY DEPARTMENT_ID
WHERE DEPARTMENT_ID IN(90,50)
HAVING MIN(DEPARTMENT_ID)<=90;
b. SELECT MIN(LASTNAME||FIRSTNAME) AS NAME,
DEPARTMENT_ID
FROM EMPLOYEES
WHERE DEPARTMENT_ID IN(90,50)
GROUP BY DEPARTMENT_ID
HAVING(DEPARTMENT_ID)<=90;
HAVING MIN(DEPARTMENT_ID)<=90;
Clear my choice
Question 4
Answer saved
Marked out of
1.00
Answer: 6
Question 5 Choose the letter of the correct answer based on the table
Answer saved EMPLOYEES as shown below.
Marked out of
Table 1.0 EMPLOYEES
1.00
Which of the following is the correct query that displays the
MINIMUM salary of employees per job_id? Note job_id should be
in lowercase.
Select one:
a. SELECT MIN(SALARY) AS LOWEST SALARY, LOWER(JOB_ID)
FROM EMPLOYEES
GROUP BY JOB_ID;
Clear my choice
Question 6 Choose the letter of the correct answer based on the table
Answer saved EMPLOYEES as shown below.
Marked out of
Table 1.0 EMPLOYEES
1.00
Which of the following is the correct query that counts the
number of ST_CLERK job_id? Rename the column as “Total no. of
ST_CLERK”.
Select one:
a. SELECT COUNT(JOB_ID), AS “TOTAL NO. OF ST_CLERK”
FROM EMPLOYEES
WHERE JOB_ID != ‘ST_CLERK’;
Clear my choice
Question 7
Answer saved
Marked out of
1.00
Answer: 5
Question 8
Answer saved
Marked out of
1.00
SELECT MAX(NAME) FROM STOCKS;
Answer: Zonrox
Question 9
Answer saved
Marked out of
1.00
Answer: 563.78
Question 10 Which of the following query is correct which will display the
Answer saved same output as shown below?
Marked out of
1.00
Select one:
a. SELECT MAX(LASTNAME||','||FIRSTNAME) AS NAME,
MAX(SALARY)
FROM EMPLOYEES;
Clear my choice
Stay in touch
AMA EDUCATION SYSTEM
https://blended.amauonline.com/helpdesk