Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which of the following will retrieve the LOWEST value of SALARY in a table called EMPLOYEES? 1 point SELECT LOWEST ( SALARY ) FROM EMPLOYER

Which of the following will retrieve the LOWEST value of SALARY in a table called EMPLOYEES?
1 point
SELECT LOWEST(SALARY) FROM EMPLOYER
SELECT MIN(SALARY) FROM EMPLOYEES
SELECT MAX(SALARY) FROM EMPLOYEES
SELECT SALARY FROM EMPLOYEES WHERE MINIMUM(SALARY)= SALARY
2.
Question 2
Which of the following queries will return the first name of the employee who earns the highest salary?
1 point
SELECT MAX(SALARY) FROM EMPLOYEES
SELECT FIRST_NAME, MAX(SALARY) FROM EMPLOYEES GROUP BY F_NAME
SELECT FIRST_NAME FROM EMPLOYEES WHERE SALARY =
( SELECT MAX(SALARY) FROM EMPLOYEES )
SELECT FIRST_NAME FROM EMPLOYEES WHERE SALARY IS HIGHEST
3.
Question 3
Which of the following queries will return the data for employees who belong to the department with the highest value of department ID.
1 point
SELECT * FROM EMPLOYEES WHERE DEP_ID = MAX(DEP_ID)
SELECT * FROM EMPLOYEES WHERE DEP_ID =
( SELECT DEPT_ID_DEP FROM DEPARTMENTS WHERE DEPT_ID_DEP IS MAX )
SELECT * FROM EMPLOYEES WHERE DEP_ID =
( SELECT MAX(DEPT_ID_DEP) FROM DEPARTMENTS )
SELECT * FROM EMPLOYEES WHERE DEPT_ID_DEP =
MAX ( SELECT DEPT_ID_DEP FROM DEPARTMENTS )
4.
Question 4
A DEPARTMENTS table contains DEP_NAME, and DEPT_ID_DEP columns and an EMPLOYEES table contains columns called F_NAME and DEP_ID. We want to retrieve the Department Name for each Employee. Which of the following queries will correctly accomplish this?
1 point
SELECT F_NAME, DEP_NAME FROM EMPLOYEES E, DEPARTMENTS D WHERE E.DEPT_ID_DEP = D.DEP_ID
SELECT F_NAME, DEP_NAME FROM EMPLOYEES, DEPARTMENTS WHERE DEPT_ID_DEP = DEP_ID
SELECT E.F_NAME, D.DEP_NAME FROM EMPLOYEES, DEPARTMENTS
SELECT D.F_NAME, E.DEP_NAME FROM EMPLOYEES E, DEPARTMENTS D WHERE DEPT_ID_DEP = DEP_ID
5.
Question 5
You are writing a query that will give you the total cost to the Pet Rescue organization of rescuing animals. The cost of each rescue is stored in the Cost column. You want the result column to be called Total_Cost. Which of the following SQL queries is correct?
1 point
SELECT SUM(Cost) FROM PetRescue
SELECT SUM(Cost) AS Total_Cost FROM PetRescue
SELECT SUM(Total_Cost) From PetRescue
SELECT Total_Cost FROM PetRescue

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What are the steps that the EEOC uses once a charge is filed?

Answered: 1 week ago

Question

What would you do?

Answered: 1 week ago